Skip to content

Commit

Permalink
Move coverage config to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Sep 23, 2024
1 parent 67f1044 commit a173d12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,11 @@ artifacts = ["*.so", "*.dll", "*.dylib"]
path = "tools/hatch_build.py"

# ===== Tooling

[tool.coverage.report]
exclude_also = [
# Have to re-enable the standard pragma, plus a less-ugly flavor
"pragma: no cover",
"no-cover",
"raise NotImplementedError",
]
12 changes: 0 additions & 12 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,3 @@ per-file-ignores =
tests/test_wgpu_native_compute_tex.py : F821,F722
examples/*.py: F821,F722
examples/triangle_qt*.py: E402


[coverage:report]

exclude_lines =
# Remember that these are reg exp

# Have to re-enable the standard pragma, plus a less-ugly flavor
pragma: no cover
no-cover

raise NotImplementedError

0 comments on commit a173d12

Please sign in to comment.