-
-
Notifications
You must be signed in to change notification settings - Fork 56
/
setup.cfg
53 lines (46 loc) · 1.35 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[flake8]
extend-ignore = E203
max-line-length = 120
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules,venv
per-file-ignores =
./config/settings/local.py:F405
./config/settings/production.py:F405
./config/settings/base.py:F405
./config/settings/test.py:F405
./opencontractserver/tasks/doc_tasks.py: E203
./opencontractserver/utils/pdf_tools.py: E203,F401
./opencontractserver/tests/fixtures/__init__.py: F401
[pycodestyle]
max-line-length = 120
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules,venv
[isort]
line_length = 88
known_first_party = opencontractserver,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
profile = black
[end-of-file-fixer]
exclude = frontend,staticfiles
[mypy]
python_version = 3.9
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_drf_plugin.main
[mypy.plugins.django-stubs]
django_settings_module = config.settings.test
[mypy-*.migrations.*]
# Django migrations should not produce any errors:
ignore_errors = True
[coverage:run]
include = opencontractserver/*
omit = *migrations*, *tests*
plugins =
django_coverage_plugin