-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
67 lines (51 loc) · 1.49 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
60
61
62
63
64
65
66
67
[build-system]
# Minimum requirements for the build system to execute.
# PEP 508 specifications for PEP 518.
requires = [
"setuptools >= 42.0", # PSF/ZPL
"wheel",
"setuptools_scm[toml]>=3.4",
]
build-backend="setuptools.build_meta"
[tool.black]
line-length = 120
safe = true
target-version = ["py36", "py37", "py38"]
[tool.isort]
line_length = 120
multi_line_output = 3
force_single_line = true
import_heading_stdlib = "Standard Library"
import_heading_thirdparty = "External Dependencies"
import_heading_firstparty = "Package Implementation"
import_heading_localfolder = "Local Implementation"
[tool.coverage.run]
omit = ["test/*"]
branch = true
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
# Don't complain if tests don't hit defensive assertion code:
"raise NotImplementedError",
# Exclude methods marked as abstract
"@abstractmethod",
# Exclude import statements
"^from\b",
"^import\b",
# Exclude variable declarations that are executed when file is loaded
"^[a-zA-Z_]+\b\\s=",
# Code for static analysis is never covered:
"if typing.TYPE_CHECKING:",
# Fallback code with no installed deps is almost impossible to cover properly
"except ImportError:",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:",
# OS Specific
"if platform.system()",
]
[tool.coverage.json]
pretty_print = true
[tool.setuptools_scm]