Newer
Older
ignore_missing_imports = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
strict_optional = true
namespace_packages = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_no_return = true
warn_unreachable = true
implicit_reexport = false
strict_equality = true
show_error_codes = true
show_column_numbers = true
# Suppress "note: By default the bodies of untyped functions are not checked"
disable_error_code = "annotation-unchecked"
Karel van Klink
committed
# Forbid the use of a generic "type: ignore" without specifying the exact error that is ignored
enable_error_code = "ignore-without-code"

Mohammad Torkashvand
committed
"PLW1514",
Karel van Klink
committed
"A",
"ARG",
Karel van Klink
committed
"BLE",
Karel van Klink
committed
"COM",
"C4",
"C90",
Karel van Klink
committed
"DTZ",
Karel van Klink
committed
"EM",
"ERA",
Karel van Klink
committed
"FA",
"FBT",
"FLY",
"FURB",
"G",
Karel van Klink
committed
"ICN",
"INP",
"ISC",
"LOG",
Karel van Klink
committed
"PERF",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"Q",
"RET",
"R",
Karel van Klink
committed
"RSE",
"RUF",
Karel van Klink
committed
"SIM",
"SLF",
Karel van Klink
committed
"T20",
"TID",
"TRY",
"UP",
Karel van Klink
committed
"YTT"
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.per-file-ignores]
"test/*" = ["ARG001", "D", "S101", "PLR2004"]
known-third-party = ["pydantic", "migrations"]
known-first-party = ["test", "docs"]