-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
58 lines (50 loc) · 1.33 KB
/
pyproject.toml
File metadata and controls
58 lines (50 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[tool.poetry]
package-mode = false
[tool.poetry.dependencies]
python = "^3.12"
fastapi = "^0.115.12"
uvicorn = { extras = ["standard"], version = "^0.34.2" }
pydantic-settings = "^2.9.1"
alembic = "^1.15.2"
sqlalchemy = { extras = ["asyncio", "mypy"], version = "^2.0.41" }
asyncpg = "^0.30.0"
pydantic = { extras = ["email"], version = "^2.11.4" }
gunicorn = "^23.0.0"
[tool.poetry.group.dev.dependencies]
mypy = "^1.15.0"
ruff = "^0.11.10"
pre-commit = "^4.2.0"
[tool.poetry.group.test.dependencies]
pytest = "^8.4.0"
pytest-asyncio = "^1.0.0"
httpx = "^0.28.1"
pytest-env = "^1.1.5"
[tool.mypy]
strict = true
plugins = ["pydantic.mypy", "sqlalchemy.ext.mypy.plugin"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"W191", # indentation contains tabs
]
[tool.ruff.lint.per-file-ignores]
"fastapi-app/alembic/versions/*.py" = ["W291"] # ignore trailing-whitespace in alembic autogenerate migrations
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
env = [
"CONFIG__MODE=TEST",
]