Skip to content

Commit e5cb1cc

Browse files
authored
Simplify pytest invocation within noxfile (#280)
1 parent 25c45c0 commit e5cb1cc

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

noxfile.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,7 @@ def test(s: Session) -> None:
1616
f"--python={s.virtualenv.location}",
1717
env={"UV_PROJECT_ENVIRONMENT": s.virtualenv.location},
1818
)
19-
s.run(
20-
"python",
21-
"-m",
22-
"pytest",
23-
"--cov=fact",
24-
"--cov-report=html",
25-
"--cov-report=term",
26-
"tests",
27-
*s.posargs,
28-
)
19+
s.run("pytest", "--cov=fact", "--cov-report=html", "--cov-report=term", "tests", *s.posargs)
2920

3021

3122
# For some sessions, set venv_backend="none" to simply execute scripts within the existing

0 commit comments

Comments
 (0)