13eaa35f1c
Pins runtime and ML deps separately so the regular web image stays lean. Configures ruff for py312 with bugbear, async, and pyupgrade lints enabled. psycopg sync driver included up-front for alembic. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
24 lines
467 B
TOML
24 lines
467 B
TOML
target-version = "py312"
|
|
line-length = 100
|
|
|
|
[lint]
|
|
select = [
|
|
"E", "W", # pycodestyle
|
|
"F", # pyflakes
|
|
"I", # isort
|
|
"UP", # pyupgrade
|
|
"B", # flake8-bugbear
|
|
"C4", # comprehensions
|
|
"ASYNC", # async correctness
|
|
]
|
|
ignore = [
|
|
"E501", # line length, handled by formatter
|
|
]
|
|
|
|
[lint.per-file-ignores]
|
|
"alembic/versions/*.py" = ["E", "F", "I", "UP"]
|
|
"tests/*" = ["F401"]
|
|
|
|
[format]
|
|
quote-style = "double"
|