Skip to content

Commit

Permalink
Merge pull request #36 from K-dash/feature/enable-hot-reload
Browse files Browse the repository at this point in the history
Enable hot reload for development server
  • Loading branch information
ryansurf authored May 31, 2024
2 parents c75b75f + 40321ca commit 5265486
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
# Run the linter.
- id: ruff
args: [ ., --fix, --diff ]
entry: ruff check . --fix
# Run the formatter.
- id: ruff-format
args: [ . ]
2 changes: 1 addition & 1 deletion src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ async def run_subprocess():


if __name__ == "__main__":
app.run(host="0.0.0.0", port=env.PORT)
app.run(host="0.0.0.0", port=env.PORT, debug=env.DEBUG)
1 change: 1 addition & 0 deletions src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class ServerSettings(CommonSettings):
IP_ADDRESS: Union[IPvAnyAddress | Literal["localhost"]] = Field(
default="localhost"
)
DEBUG: bool = Field(default=True)


class EmailSettings(ServerSettings):
Expand Down

1 comment on commit 5265486

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src
   __init__.py00100% 
   api.py85693%30, 48, 69–70, 101–102
   art.py9367%24–25, 37
   cli.py26485%33, 51–52, 56
   gpt.py10640%15–20, 27–40
   helper.py1425263%47, 58–62, 95–103, 115, 128–129, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 178–180, 190, 192–193, 211–212, 249–259, 266–274
   send_email.py24240%5–48
   server.py41410%5–82
   settings.py220100% 
TOTAL35913662% 

Tests Skipped Failures Errors Time
6 0 💤 0 ❌ 0 🔥 11.014s ⏱️

Please sign in to comment.