Skip to content

Commit 7e9c2ee

Browse files
committed
chore: fix argument to main test function
When trying to run tests with `hatch run test path/to/test.py::test_fo`, hatch keeps the first `tests/` argument, which ends up including all of the tests anyway. Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent c612a67 commit 7e9c2ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ requires = ["hatch-vcs", "hatchling"]
218218
example = "pytest --ignore=examples/v2 examples/ {args}"
219219
format = "ruff format {args}"
220220
lint = "ruff check --output-format=full --show-fixes {args}"
221-
test = "pytest --ignore=tests/v2 tests/ {args}"
221+
test = "pytest --ignore=tests/v2 {args:tests/}"
222222
typecheck = ["typecheck-examples", "typecheck-src", "typecheck-tests"]
223223
typecheck-examples = "mypy examples/ {args}"
224224
typecheck-src = "mypy src/ {args}"

0 commit comments

Comments
 (0)