Spaces:
Running
Running
File size: 685 Bytes
9841346 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Lint configuration. The rule set is deliberately small: this repo had no
# linter, and the first pass found a duplicate import shadowing another, four
# unused imports and an f-string with no placeholders - all of which a
# default pyflakes-equivalent catches. Widen the selection when the team
# wants more, rather than starting from a large set and adding ignores.
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"F", # pyflakes: unused/duplicate imports, f-strings without placeholders
"E9", # syntax and IO errors
"B", # bugbear: likely-wrong constructs
]
ignore = [
"B008", # FastAPI's Depends()/Field() in defaults is the documented idiom
]
|