72c93060f9
The python-ci runner image ships ruff 0.9.7, which only recognizes target-version values up to py313. Code still runs on Python 3.14; this only affects which UP-rule suggestions ruff produces. Durable fix is bumping RUFF_VERSION in CI-Runner/CI-python/Dockerfile to 0.13+ and re-pushing the runner image — at which point we can flip this back to py314. Inline comment in ruff.toml flags the future bump. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
29 lines
825 B
TOML
29 lines
825 B
TOML
target-version = "py313"
|
|
# Note: runtime is Python 3.14, but the python-ci runner image ships
|
|
# ruff 0.9.7 which only knows target-version up to py313. Bumping the
|
|
# runner image's RUFF_VERSION to 0.13+ would let us flip this back to
|
|
# py314; until then py313 is the highest ruff accepts here. Code still
|
|
# runs on 3.14; we just don't get UP suggestions for 3.14-only optimizations.
|
|
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"
|