mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-26 19:44:00 +03:00
0872982245
Adds django-stubs as a requirement for local virtualenv. This is required now that the User Model type is being resolved properly.
24 lines
579 B
INI
24 lines
579 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
|
|
plugins = mypy_django_plugin.main
|
|
|
|
[mypy.plugins.django-stubs]
|
|
django_settings_module = config.settings.test
|
|
|
|
[mypy-*.migrations.*]
|
|
# Django migrations should not produce any errors:
|
|
ignore_errors = True
|