Skip to content

Commit

Permalink
fix(main): imports
Browse files Browse the repository at this point in the history
Fixes:  pylint; UvicornSettings import; Host str
  • Loading branch information
tomasanchez committed May 5, 2024
1 parent e3581e1 commit 1733120
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/template/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
# pylint: disable=wrong-import-position
import uvicorn

import template.settings.uvicorn_settings
# pylint: disable=ungrouped-imports
from template.settings.uvicorn_settings import UvicornSettings

settings = template.UvicornSettings()
settings = UvicornSettings()

uvicorn.run(
"template.main:app",
host=settings.HOST,
host=str(settings.HOST),
port=settings.PORT,
log_level=settings.LOG_LEVEL,
reload=settings.RELOAD,
Expand Down

0 comments on commit 1733120

Please sign in to comment.