Skip to content

Commit 80feccb

Browse files
committed
Format with black
1 parent c280ce4 commit 80feccb

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import os
32

43
import uvicorn
@@ -10,10 +9,9 @@
109

1110
if __name__ == "__main__":
1211
# running with debugging purpose ** NOT for production **
13-
port = int(os.environ["FASTAPI_APP_PORT"]) if "FASTAPI_APP_PORT" in os.environ else 5000
14-
uvicorn.run(
15-
app,
16-
host="0.0.0.0",
17-
port=port,
18-
debug=True
12+
port = (
13+
int(os.environ["FASTAPI_APP_PORT"])
14+
if "FASTAPI_APP_PORT" in os.environ
15+
else 5000
1916
)
17+
uvicorn.run(app, host="0.0.0.0", port=port, debug=True)

{{ cookiecutter.project_slug }}/tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
from typing import Generator
32

43
import pytest

{{ cookiecutter.project_slug }}/tests/test_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
from {{cookiecutter.project_slug}} import __version__
32

43

0 commit comments

Comments
 (0)