2024-05-14 18:04:46 +02:00
|
|
|
[tool.mypy]
|
|
|
|
ignore_missing_imports = true
|
|
|
|
disallow_any_generics = true
|
|
|
|
no_implicit_optional = true
|
|
|
|
pretty = true
|
|
|
|
show_column_numbers = true
|
|
|
|
warn_redundant_casts = true
|
|
|
|
warn_return_any = true
|
|
|
|
warn_unreachable = true
|
|
|
|
namespace_packages = true
|
|
|
|
explicit_package_bases = true
|
|
|
|
exclude = ["thirdparty/"]
|
|
|
|
|
2024-05-21 15:14:59 +02:00
|
|
|
[tool.ruff]
|
|
|
|
extend-exclude = ["thirdparty"]
|
|
|
|
extend-include = ["SConstruct", "SCsub"]
|
2024-05-14 18:04:46 +02:00
|
|
|
line-length = 120
|
2024-05-21 15:14:59 +02:00
|
|
|
target-version = "py37"
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
extend-select = [
|
|
|
|
"I", # isort
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
|
|
"{SConstruct,SCsub}" = [
|
|
|
|
"E402", # Module level import not at top of file
|
|
|
|
"F821", # Undefined name
|
|
|
|
]
|