generated from adhtruong/template-python-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
56 lines (52 loc) · 1.12 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
[tool.black]
line-length = 120
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[tool.isort]
line_length = 120
[tool.pytest.ini_options]
addopts = "-ra -v --durations=5 --cov=pycairo_util"
# Coverage ----------------------------------------------
## http://coverage.readthedocs.io/en/latest/config.html
[tool.coverage.run]
branch = true
source = ["pycairo_util"]
data_file = ".coverage.unittest"
omit = [
"*/site-packages/*",
"__init__.py",
"*__init__.py",
"app.py",
"main.py",
"*/test/*",
"*/tests/*",
"*/test_*",
"*_test.py",
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]