-
-
Notifications
You must be signed in to change notification settings - Fork 178
Expand file tree
/
Copy pathsetup.cfg
More file actions
76 lines (70 loc) · 2.59 KB
/
Copy pathsetup.cfg
File metadata and controls
76 lines (70 loc) · 2.59 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[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
./config/settings/test_integration.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 configuration lives in mypy.ini (see issue #1331 and
# docs/typing/README.md). It is split out because the per-module
# baseline allow-list is large.
[coverage:run]
# .codecov.yml's "backend" flag/component declares both opencontractserver/
# and config/ as backend paths (and even pre-emptively ignores
# config/settings/test*.py there) — but this include list only ever listed
# opencontractserver/*, so every file under config/ (all of config/graphql/,
# i.e. every GraphQL resolver and mutation) was silently absent from
# coverage.xml. Codecov's patch-coverage check has no data for lines changed
# in those files, which reads as a hard, unfixable patch-coverage failure on
# any PR touching config/graphql/. include config/* to close the gap.
include =
opencontractserver/*
config/*
omit =
*migrations*
*tests*
*/temp_*
*/tmp_*
*/__pycache__/*
# django_coverage_plugin (template coverage) is intentionally not loaded:
# Coverage 7.x falls back to the legacy C trace function whenever any file
# tracer plugin is configured, which silently defeats COVERAGE_CORE=sysmon
# (a ~10x cheaper instrumentation path on Python 3.12+). The project owns 7
# Django templates total, all 4xx/5xx pages plus a couple of admin views —
# template coverage was a trivial slice of total coverage but the plugin was
# forcing a ~150% test-suite wall-time tax. Restore the plugin if/when
# coverage.py supports sysmon-compatible plugin tracers.
[coverage:report]
ignore_errors = True
skip_empty = True
skip_covered = False
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod