-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
53 lines (47 loc) · 945 Bytes
/
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
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
# https://docs.pytest.org/en/stable/customize.html
addopts = '''
-ra
--tb=line
-W error
--doctest-modules
--strict-markers
'''
# -ra: show extra test summary [...] (a)ll except passed [...]
# --tb=style: traceback print mode (auto/long/short/line/native/no)
# -W: set which warnings to report, "error" turns matching warnings into exceptions
testpaths = [
"tests",
]
norecursedirs = [
".git",
".github",
".pytest_cache",
"__pycache__",
]
[tool.coverage.run]
# https://coverage.readthedocs.io/en/latest/config.html
branch = true
[tool.coverage.report]
show_missing = true
[tool.black]
# https://black.readthedocs.io/en/stable/pyproject_toml.html
line-length = 99
target-version = ['py38']
exclude = '''
(
/(
\.git
| \.github
| \.pytest_cache
| env
| venv
)/
)
'''