Skip to content

Commit ba46124

Browse files
committed
Use pyproject.toml for coverage
1 parent 7a7d6b3 commit ba46124

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,12 @@ jobs:
172172
# add -i to ignore code in ephemeral python files created in temporary
173173
# directories during tests; this will result in warnings in the report
174174
echo "Creating coverage report..."
175-
coverage report -i -m --omit inspect*,ann*
176-
coverage xml -i --omit inspect*,ann*
175+
coverage report
176+
coverage xml
177177
178178
- name: Code Coverage Report
179179
uses: irongut/[email protected]
180180
with:
181-
# Alternatively use one file per python version
182181
filename: coverage.xml
183182
badge: true
184183
fail_below_min: false

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ venv*/
1818
*.egg-info/
1919

2020
.coverage*
21+
coverage.xml

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,9 @@ ignore = [
114114
[tool.ruff.lint.isort]
115115
extra-standard-library = ["tomllib"]
116116
known-first-party = ["typing_extensions", "_typed_dict_test_helper"]
117+
118+
[tool.coverage.report]
119+
show_missing = true
120+
# Omit files that are created in temporary directories during tests.
121+
omit = ["inspect*", "ann*"]
122+
ignore_errors = true

0 commit comments

Comments
 (0)