- Fix 71 invalid-syntax files (class-body newline-broken assignments) - Add from/None chain to 307 B904 raise-without-from sites - Add B008 ignore to ruff.toml (already in pyproject.toml) - Noqa F401 on __init__.py re-exports (137 sites) - Noqa E402 on deferred imports (63 sites) - Bulk-add stdlib/FastAPI/project imports for F821 (127 sites) - Replace ×→x, –→-, …→... in docstrings (4093 chars) - Manual refactor of 5 SIM103/SIM116 patterns Tests: 791 passed (66 deselected due to pre-existing Redis issues in test_rag.py) Co-authored-by: opencode <opencode@rugmunch.io>
17 lines
509 B
TOML
17 lines
509 B
TOML
# RMI Backend - Strict linting config
|
|
target-version = "py311"
|
|
line-length = 120
|
|
|
|
[lint]
|
|
select = [
|
|
"E", "F", "I", "W", "UP", "B", "C4", "SIM", "RUF",
|
|
]
|
|
ignore = [
|
|
"E501", # Line too long
|
|
"RUF006", # create_task result unused (fire-and-forget patterns)
|
|
"SIM102", # Nested if — existing code convention
|
|
"B008", # function-call-in-default (FastAPI Depends pattern, intentional)
|
|
]
|
|
|
|
[lint.per-file-ignores]
|
|
"app/core/lifespan.py" = ["T20"] # print() for startup logging is intentional
|