2014-08-07 23:10:26 +04:00
|
|
|
[flake8]
|
|
|
|
max-line-length = 120
|
2023-01-10 11:57:05 +03:00
|
|
|
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules,venv,.venv
|
2015-09-26 10:47:44 +03:00
|
|
|
|
2017-04-30 00:57:23 +03:00
|
|
|
[pycodestyle]
|
2015-09-26 10:47:44 +03:00
|
|
|
max-line-length = 120
|
2023-01-10 11:57:05 +03:00
|
|
|
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules,venv,.venv
|
2018-07-02 10:22:48 +03:00
|
|
|
|
2021-08-09 06:58:48 +03:00
|
|
|
[isort]
|
|
|
|
line_length = 88
|
|
|
|
known_first_party = {{cookiecutter.project_slug}},config
|
|
|
|
multi_line_output = 3
|
|
|
|
default_section = THIRDPARTY
|
|
|
|
skip = venv/
|
|
|
|
skip_glob = **/migrations/*.py
|
|
|
|
include_trailing_comma = true
|
|
|
|
force_grid_wrap = 0
|
|
|
|
use_parentheses = true
|
|
|
|
|
2018-07-02 10:22:48 +03:00
|
|
|
[mypy]
|
2022-10-24 23:41:00 +03:00
|
|
|
python_version = 3.10
|
2018-07-02 10:22:48 +03:00
|
|
|
check_untyped_defs = True
|
|
|
|
ignore_missing_imports = True
|
|
|
|
warn_unused_ignores = True
|
|
|
|
warn_redundant_casts = True
|
|
|
|
warn_unused_configs = True
|
2021-10-09 09:09:46 +03:00
|
|
|
plugins = mypy_django_plugin.main{% if cookiecutter.use_drf == "y" %}, mypy_drf_plugin.main{% endif %}
|
2018-07-02 10:22:48 +03:00
|
|
|
|
2019-12-11 16:58:21 +03:00
|
|
|
[mypy.plugins.django-stubs]
|
|
|
|
django_settings_module = config.settings.test
|
|
|
|
|
2018-07-02 10:22:48 +03:00
|
|
|
[mypy-*.migrations.*]
|
|
|
|
# Django migrations should not produce any errors:
|
|
|
|
ignore_errors = True
|
2020-04-12 21:40:02 +03:00
|
|
|
|
|
|
|
[coverage:run]
|
2022-12-21 16:57:20 +03:00
|
|
|
include = {{cookiecutter.project_slug}}/**
|
2020-04-12 21:40:02 +03:00
|
|
|
omit = *migrations*, *tests*
|
|
|
|
plugins =
|
|
|
|
django_coverage_plugin
|