mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-01-15 17:29:16 -05:00
This PR enables the ruff rule for return type annotations (ANN), and adds the ty package for type checking.
39 lines
793 B
TOML
39 lines
793 B
TOML
namespace-packages = ["alembic", "metadata_relay"]
|
|
|
|
[format]
|
|
line-ending = "lf"
|
|
quote-style = "double"
|
|
|
|
[lint]
|
|
# to be enabled: BLE, C90, CPY, D, DOC, DTZ, FBT, G, PL, RSE, SLF, SIM, TC, TRY, UP
|
|
extend-select = [
|
|
"A", "ARG", "ASYNC", "ANN",
|
|
"B",
|
|
"C4", "COM",
|
|
"DTZ",
|
|
"E", "EM", "EXE",
|
|
"F", "FA", "FAST", "FIX", "FLY", "FURB",
|
|
"I", "ICN", "INP", "INT", "ISC",
|
|
"LOG",
|
|
"N",
|
|
"PERF", "PGH", "PIE", "PT", "PTH", "PYI",
|
|
"Q",
|
|
"RET", "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"]
|