Skip to content

Commit

Permalink
chore: remove some unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Oct 21, 2024
1 parent d04e13e commit 50aace5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 144 deletions.
135 changes: 2 additions & 133 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ pytest = "8.3.3"
pre-commit = "4.0.1"
asyncpg-stubs = "0.29.1"
types-redis = "^4.6.0.20240806"
types-python-dateutil = "^2.9.0.20240316"
types-pyyaml = "^6.0.12.20240808"
python-dotenv = "1.0.1"
watchfiles = '0.24.0'

[tool.poetry.group.dev.dependencies.google-re2-stubs]
git = 'https://github.com/trim21/google-re2-stubs'
Expand Down
6 changes: 0 additions & 6 deletions server/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@ async def pg_pool_startup() -> None:


class XRequestIdMiddleware(AbstractMiddleware):
"""If X-Request-Id is in the request headers, add it to the response headers.
Reference: https://docs.litestar.dev/2/usage/middleware/creating-middleware.html
"""

scopes = {ScopeType.HTTP} # noqa: RUF012

async def __call__(
Expand Down
2 changes: 1 addition & 1 deletion taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tasks:

server:
cmds:
- watchfiles --target-type=command --filter python 'uvicorn server.app:app --env-file .env --no-access-log' server
- watchexec -r -e py -- uvicorn server.app:app --env-file .env --no-access-log

run:
dotenv: [ .env ]
Expand Down

0 comments on commit 50aace5

Please sign in to comment.