-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.cfg
More file actions
185 lines (157 loc) · 3.59 KB
/
Copy pathsetup.cfg
File metadata and controls
185 lines (157 loc) · 3.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
[flake8]
# Max line length for black compatibility
max-line-length = 88
# Exclude common patterns
exclude =
.git,
__pycache__,
.venv,
venv,
env,
build,
dist,
*.egg-info,
.pytest_cache,
.mypy_cache,
htmlcov,
.tox,
Multiwfn_3.8_bin_Linux_noGUI,
Multiwfn_3.8_dev_src_Linux_2025-Nov-23,
consistency_verifier,
nightly-development,
# Ignore specific errors
ignore =
# E203: Whitespace before ':' (conflicts with black)
E203,
# E501: Line too long (handled by black)
E501,
# W503: Line break before binary operator (conflicts with black)
W503,
# F401: Imported but unused (use selectively)
# F811: Redefinition of unused name (allow type hints)
F811,
# Per-file ignores
per-file-ignores =
__init__.py:F401
*/test*.py:
# Allow longer lines in tests
E501,
# Allow unused imports in tests
F401,
F811
# Enable selected plugins
enable-extensions =
# Check for confusing code constructs
C90,
[mypy]
# Python version to target
python_version = 3.10
# Warn about missing type annotations
warn_return_any = True
warn_unused_configs = True
# Disallow untyped definitions
disallow_untyped_defs = False
disallow_incomplete_defs = True
# Check untyped function definitions
check_untyped_defs = True
# Warn about unused ignores
warn_unused_ignores = True
# Show error codes
show_error_codes = True
# Error summary
show_error_context = True
# Exclude directories from checking
exclude =
(?x)(
(^|/)build/
| (^|/)dist/
| (^|/)\.git/
| (^|/)\.venv/
| (^|/)venv/
| (^|/)env/
| (^|/).*\.egg-info/
| (^|/)\.pytest_cache/
| (^|/)\.mypy_cache/
| (^|/)htmlcov/
| (^|/).*\.tox/
| (^|/)Multiwfn_3.8/
| (^|/)nightly-development/
| (^|/)consistency_verifier/
| (^|/)_\d+round-iteration/
)
# Per-module settings
[mypy-tests.*]
disallow_untyped_defs = False
check_untyped_defs = False
[mypy-pymultiwfn.math.fortran.*]
ignore_errors = True
[mypy-pymultiwfn.math.jit_functions]
ignore_errors = True
[coverage:run]
# Source directories to measure coverage
source = pymultiwfn
# Branch coverage
branch = True
# Parallel execution
parallel = True
# Omit files from coverage
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/site-packages/*
*/venv/*
*/.venv/*
*/dist/*
*/build/*
*/.*egg-info/*
pymultiwfn/math/fortran/*
pymultiwfn/__init__.py
pymultiwfn/main.py
*/Multiwfn_3.8/*
*/nightly-development/*
*/consistency_verifier/*
[coverage:paths]
# Map source files for coverage
source =
pymultiwfn
*/site-packages/pymultiwfn
[coverage:report]
# Coverage precision
precision = 2
# Show missing lines
show_missing = True
# Skip covered files
skip_covered = False
# Exclude lines from coverage
exclude_lines =
pragma: no cover
def __repr__
def __str__
raise NotImplementedError
raise AssertionError
if TYPE_CHECKING
if typing.TYPE_CHECKING
class.*[Pp]rotocol.*:
@typing.Protocol
@abc.abstractmethod
if __name__ == .__main__.:
assert False
if sys.platform == .win.:
if sys.platform == .darwin.:
if sys.platform.startswith('linux')
if DEBUG
if __debug__
except ImportError
except ModuleNotFoundError
[coverage:html]
# HTML coverage report directory
directory = htmlcov
# Coverage report title
title = PyMultiWFN Test Coverage Report
[coverage:xml]
# XML coverage report file
output = coverage.xml
[bdist_wheel]
# Universal wheel (for pure Python packages)
universal = 0