-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
35 lines (30 loc) · 1.12 KB
/
Copy pathpyproject.toml
File metadata and controls
35 lines (30 loc) · 1.12 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
# Tool configuration only — no [project] table.
#
# This is an application, not a distributable package. Note that Vercel's Python
# builder runs `uv lock` against this file whenever it is present and ignores
# requirements.txt entirely, so it is excluded from the deployment upload in
# .vercelignore. Adding a [project] table here without also listing every
# runtime dependency will break the build.
[tool.ruff]
line-length = 100
target-version = "py312"
exclude = ["app/db/migrations/versions", ".venv"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "C4", "SIM", "RUF"]
ignore = [
"E501", # line length is enforced by the formatter
"B008", # FastAPI's Depends()/File() in defaults is the framework idiom
"RUF001", # prose in docstrings legitimately uses en dashes
"RUF002",
"RUF003",
"SIM108", # ternaries are not always clearer than an if/else
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
"app/db/migrations/*" = ["I001"]
[tool.ruff.format]
quote-style = "double"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
filterwarnings = ["ignore::DeprecationWarning"]