Skip to content

Commit 1ecec6d

Browse files
dmitriyrepintasansal
authored andcommitted
exclude-test-source-from-coverage
1 parent a0df710 commit 1ecec6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ dev = [
5555
"pre-commit-hooks>=6.0.0",
5656
"pytest>=8.4.2",
5757
"pytest-dependency>=0.6.0",
58+
"pytest-cov>=7.0.0",
5859
"typeguard>=4.4.4",
5960
"xdoctest[colors]>=1.3.0",
6061
"Pygments>=2.19.2"
@@ -151,8 +152,9 @@ tests = ["tests", "*/tests"]
151152

152153
[tool.coverage.run]
153154
branch = true
154-
source = ["src/mdio", "tests"]
155+
source = ["src/mdio"]
155156
relative_files = true
157+
omit = ["tests/*", "noxfile.py"]
156158

157159
[tool.coverage.report]
158160
show_missing = true

0 commit comments

Comments
 (0)