Skip to content

Commit ce9100a

Browse files
committed
DEV: Add .coveragerc
Code blocks that should not be considered for test coverage can be specified here. Also adjusted the PR template to reflect how this can be invoked.
1 parent 4c911a4 commit ce9100a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.coveragerc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[report]
2+
exclude_also =
3+
; Ignore type checking blocks
4+
if TYPE_CHECKING:

.github/pull_request_template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ changes made to the code, and what the PR is solving."
66
## Checklist
77

88
- [ ] Tests added (if not, comment why)
9-
- [ ] Test coverage equal or up from main (run pytest with `--cov=<packagename> --cov-report term-missing`)
9+
- [ ] Test coverage equal or up from main (run pytest with `--cov=src/ --cov-report term-missing`)
1010
- [ ] If not squash merging, every commit passes tests
1111
- [ ] Appropriate [commit prefix](https://upgraded-funicular-eywe4gy.pages.github.io/developing/#commit-prefixes) and precise commit message used
1212
- [ ] All debug prints and unnecessary comments removed

0 commit comments

Comments
 (0)