Debian Codegraph @

pyproject.toml

raw symbols SCIP
1 [build-system]
2 requires = [ "setuptools" ]
3 build-backend = "setuptools.build_meta"
4
5
6 # =======================================
7 # tox
8 # =======================================
9 [tool.tox]
10 legacy_tox_ini = """
11 [tox]
12 skip_missing_interpreters = True
13 skipsdist = True
14 envlist =
15 py{27,36,37,38,39,310,311,312,313,314}
16 cov-report
17
18 [testenv]
19 deps =
20 -rtests/requirements.txt
21 setuptools
22 -e .
23
24 setenv =
25 COVERAGE_FILE = .coverage.{envname}
26 SETUP_CEXT_REQUIRED = 1
27 passenv =
28 CFLAGS
29 CPPFLAGS
30 LDFLAGS
31 PKG_CONFIG_PATH
32 commands =
33 inv test.local --coverage --no-coverage-report
34
35 [testenv:cov-report]
36 deps = -rtests/coverage.txt
37
38 setenv =
39 COVERAGE_FILE = .coverage
40 commands =
41 coverage erase
42 coverage combine
43 coverage report
44 coverage html
45 - python -c 'import sys, os; os.mkdir(sys.argv[1])' "docs/gcov"
46 - gcovr --print-summary --html-details --output docs/gcov/index.html
47 """
48
49
50 # =======================================
51 # Pytest
52 # =======================================
53 [tool.pytest.ini_options]
54 junit_family = "xunit2"
55 doctest_optionflags = "IGNORE_EXCEPTION_DETAIL ALLOW_UNICODE ALLOW_BYTES ELLIPSIS"
56 filterwarnings = [
57 "error",
58 ]
59
60
61 # =======================================
62 # Coverage
63 # =======================================
64 [tool.coverage.run]
65 branch = true
66
67 [tool.coverage.report]
68 # Regexes for lines to exclude from consideration
69 exclude_lines = [
70 # Have to re-enable the standard pragma
71 "pragma: no cover",
72
73 # Don't complain about missing debug-only code:
74 "if self\\.debug",
75
76 # Don't complain if tests don't hit defensive assertion code:
77 "raise NotImplementedError",
78
79 # Don't complain if non-runnable code isn't run:
80 "if 0:",
81 "if __name__ == .__main__.:",
82 ]
83
84 # Special part-branch exclusion
85 partial_branches = [
86 # Re-enable standard pragma
87 "pragma: no branch",
88 ]
89
90 # Source files to exclude
91 omit = []
92
93 ignore_errors = true
94
95 [tool.coverage.html]
96 directory = "docs/coverage"
97
98
99 # =======================================
100 # Black
101 # =======================================
102 [tool.black]
103 skip-string-normalization = true
104 # skip-magic-trailing-comma = true
105 line-length = 78
106 # target-version = ['py313']
107 include='''
108 (
109 tests/.*\.py
110 | tasks/.*\.py
111 )$
112 '''
113 extend-exclude='''
114 tasks/_inv/shell.py
115 '''
116
117
118 # =======================================
119 # isort
120 # =======================================
121 [tool.isort]
122 profile = "black"
123 force_single_line = true
124
125 # vim: nowrap