Skip to content

Commit 0181497

Browse files
committed
fix: Pass correct python path to tox type-checking
Use native tox environment variable expansion to pass $VIRTUAL_ENV Fix whitespace
1 parent c52b391 commit 0181497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/pyproject.toml.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ commands = [
104104
[
105105
"{{ type_checker }}",
106106
{% if type_checker=="pyright" %}"--pythonpath",
107-
".venv/bin/python",
107+
"{env:VIRTUAL_ENV}/bin/python",
108108
{% endif %}"src",
109109
"tests",
110110
{ replace = "posargs", default = [
@@ -116,7 +116,7 @@ commands = [
116116
description = "Run tests with coverage"
117117
commands = [
118118
[
119-
"pytest",
119+
"pytest",
120120
"--cov={{ package_name }}",
121121
"--cov-report",
122122
"term",

0 commit comments

Comments
 (0)