From 0791641a9a4bd7c8a2d6ca345155535a14dfabe5 Mon Sep 17 00:00:00 2001 From: Joseph Hamman Date: Wed, 1 Jan 2025 14:35:46 -0800 Subject: [PATCH] fix: run-coverage command now tracks src directory --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 75bbbf15d3..a92c30ab9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -136,8 +136,8 @@ numpy = ["1.25", "2.1"] features = ["gpu"] [tool.hatch.envs.test.scripts] -run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=tests" -run-coverage-gpu = "pip install cupy-cuda12x && pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov=tests" +run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=src" +run-coverage-gpu = "pip install cupy-cuda12x && pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov=src" run = "run-coverage --no-cov" run-verbose = "run-coverage --verbose" run-mypy = "mypy src" @@ -157,7 +157,7 @@ numpy = ["1.25", "2.1"] version = ["minimal"] [tool.hatch.envs.gputest.scripts] -run-coverage = "pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov=tests" +run-coverage = "pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov=src" run = "run-coverage --no-cov" run-verbose = "run-coverage --verbose" run-mypy = "mypy src"