Scaffold containerized Django/Wagtail app with core features
This commit is contained in:
45
pyproject.toml
Normal file
45
pyproject.toml
Normal file
@@ -0,0 +1,45 @@
|
||||
[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/*",
|
||||
]
|
||||
Reference in New Issue
Block a user