46 lines
985 B
TOML
46 lines
985 B
TOML
[tool.ruff]
|
|
line-length = 120
|
|
target-version = "py312"
|
|
exclude = ["migrations"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"config/settings/development.py" = ["F403", "F405"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.12"
|
|
plugins = ["mypy_django_plugin.main"]
|
|
warn_unused_configs = true
|
|
warn_redundant_casts = true
|
|
warn_unused_ignores = true
|
|
check_untyped_defs = true
|
|
exclude = ["migrations"]
|
|
disable_error_code = ["var-annotated", "override", "import-untyped", "arg-type"]
|
|
allow_untyped_globals = true
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["wagtail.*", "taggit.*", "modelcluster.*", "wagtailseo.*", "debug_toolbar"]
|
|
ignore_missing_imports = true
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["apps.authors.models"]
|
|
ignore_errors = true
|
|
|
|
[tool.django-stubs]
|
|
django_settings_module = "config.settings.development"
|
|
|
|
[tool.coverage.run]
|
|
source = ["apps"]
|
|
omit = [
|
|
"*/migrations/*",
|
|
"*/tests/*",
|
|
]
|
|
|
|
[tool.coverage.report]
|
|
omit = [
|
|
"*/migrations/*",
|
|
"*/tests/*",
|
|
]
|