mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-30 05:24:01 +03:00
0f515974cb
https://mypy.readthedocs.io/en/latest/config_file.html ignore_errors = False strict_optional = True Are both set to these values by default. No need to set them in the config. ```toml [mypy.plugins.django-stubs] django_settings_module = config.settings.local ``` mypy.plugins.django-stubs requires django_settings_module to be set. https://github.com/typeddjango/django-stubs#configuration
23 lines
545 B
INI
23 lines
545 B
INI
[flake8]
|
|
max-line-length = 120
|
|
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules
|
|
|
|
[pycodestyle]
|
|
max-line-length = 120
|
|
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules
|
|
|
|
[mypy]
|
|
python_version = 3.7
|
|
check_untyped_defs = True
|
|
ignore_missing_imports = True
|
|
warn_unused_ignores = True
|
|
warn_redundant_casts = True
|
|
warn_unused_configs = True
|
|
|
|
[mypy.plugins.django-stubs]
|
|
django_settings_module = config.settings.test
|
|
|
|
[mypy-*.migrations.*]
|
|
# Django migrations should not produce any errors:
|
|
ignore_errors = True
|