Skip to content

Commit 2535503

Browse files
authored
fix: run-coverage command now tracks src directory (#2615)
1 parent b9699f5 commit 2535503

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ numpy = ["1.25", "2.1"]
136136
features = ["gpu"]
137137

138138
[tool.hatch.envs.test.scripts]
139-
run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=tests"
140-
run-coverage-gpu = "pip install cupy-cuda12x && pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov=tests"
139+
run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=src"
140+
run-coverage-gpu = "pip install cupy-cuda12x && pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov=src"
141141
run = "run-coverage --no-cov"
142142
run-verbose = "run-coverage --verbose"
143143
run-mypy = "mypy src"
@@ -157,7 +157,7 @@ numpy = ["1.25", "2.1"]
157157
version = ["minimal"]
158158

159159
[tool.hatch.envs.gputest.scripts]
160-
run-coverage = "pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov=tests"
160+
run-coverage = "pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov=src"
161161
run = "run-coverage --no-cov"
162162
run-verbose = "run-coverage --verbose"
163163
run-mypy = "mypy src"

0 commit comments

Comments
 (0)