-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
59 lines (46 loc) · 1.26 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]~=4.1"]
build-backend = "setuptools.build_meta"
[tool.black]
target-version = ['py36']
quiet = true
[tool.coverage]
[tool.coverage.run]
branch = true
source = ["src"]
[tool.coverage.report]
exclude_lines = [
# Exclude specific lines from coverage report.
"# pragma: no cover",
# Debug-only code.
"def __repr__",
# Defensive assertion code.
"raise AssertionError",
"raise NotImplementedError",
"raise RuntimeError",
"raise ValueError",
# Not able to hit during testing.
'if __name__ == "__main__":',
# Unimplemented code.
"pass",
# Missing import code.
"except ImportError",
# Type-checking
"TYPE_CHECKING",
]
omit = ["rsc/nasty_analysis/__main__.py"]
skip_covered = true
skip_empty = true
[tool.coverage.html]
show_contexts = true
[tool.isort]
line_length = 88
multi_line_output = 3
force_grid_wrap = 0
include_trailing_comma = true
use_parentheses = true
[tools.pytest.ini_options]
testpaths = ["tests"]
[tool.setuptools_scm]
write_to = "src/nasty_analysis/_version.py"
write_to_template = "__version__ = \"{version}\"\n"