Skip to content

Commit 61a810a

Browse files
committed
merge .coveragerc and pytest.ini into pyproject.toml
1 parent 583ad69 commit 61a810a

File tree

4 files changed

+26
-18
lines changed

4 files changed

+26
-18
lines changed

.github/workflows/Pipeline.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
with:
2929
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
3030
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }}
31-
coverage_config: tests/.coveragerc
3231
secrets:
3332
codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }}
3433

pyproject.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,29 @@ build-backend = "setuptools.build_meta"
88

99
[tool.black]
1010
line-length = 120
11+
12+
[tool.pytest.ini_options]
13+
# Don't set 'python_classes = *' otherwise, pytest doesn't search for classes
14+
# derived from unittest.Testcase
15+
python_files = "*"
16+
python_functions = "test_*"
17+
18+
[tool.coverage.run]
19+
branch = true
20+
omit = [
21+
"*site-packages*",
22+
"setup.py"
23+
]
24+
25+
[tool.coverage.report]
26+
skip_covered = true
27+
skip_empty = true
28+
exclude_lines = [
29+
"raise NotImplementedError"
30+
]
31+
32+
[tool.coverage.html]
33+
directory = "report/coverage/html"
34+
35+
[tool.coverage.xml]
36+
output = "report/coverage/coverage.xml"

tests/.coveragerc

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/pytest.ini

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)