Files
MediaManager-maxdorninger/ruff.toml
Marcel Hellwig 29476e2008 ruff: enable INT and N lint
this renames some files to use snake_case and add Error suffix to custom
exceptions
2026-01-05 19:30:42 +01:00

39 lines
783 B
TOML

namespace-packages = ["alembic", "metadata_relay"]
[format]
line-ending = "lf"
quote-style = "double"
[lint]
# to be enabled: ANN, BLE, C90, CPY, D, DOC, DTZ, FBT, G, PERF, PIE, PL, PTH, RET, RSE, SLF, SIM, TC, TRY, UP
extend-select = [
"A", "ARG", "ASYNC",
"B",
"C4", "COM",
"DTZ",
"E", "EM", "EXE",
"F", "FA", "FAST", "FIX", "FLY", "FURB",
"I", "ICN", "INP", "INT", "ISC",
"LOG",
"N",
"PGH", "PT", "PYI",
"Q",
"RUF",
"S", "SLOT",
"T10", "T20", "TD", "TID",
"W",
"YTT"
]
ignore = [
# incompatible with formatter
"COM812",
# lines too long
"E501",
# currently a bug?! with providers and depends
"FAST003",
]
[lint.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends", "fastapi.Path"]