Skip to content

Commit 58471ad

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 515b084 commit 58471ad

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
@@ -215,7 +215,7 @@ requires = ["hatch-vcs", "hatchling"]
215215
example = "pytest --ignore=examples/v2 examples/ {args}"
216216
format = "ruff format {args}"
217217
lint = "ruff check --output-format=full --show-fixes {args}"
218-
test = "pytest --ignore=tests/v2 tests/ {args}"
218+
test = "pytest --ignore=tests/v2 {args:tests/}"
219219
typecheck = ["typecheck-examples", "typecheck-src", "typecheck-tests"]
220220
typecheck-examples = "mypy examples/ {args}"
221221
typecheck-src = "mypy src/ {args}"

0 commit comments

Comments
 (0)