Skip to content

Commit ad2da2b

Browse files
committed
chore: store hatch venv in .venv
Signed-off-by: JP-Ellis <[email protected]>
1 parent 103aa13 commit ad2da2b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

pact-python-cli/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ requires = ["hatch-vcs", "hatchling", "packaging"]
108108
"setuptools ; python_version >= '3.12'",
109109
]
110110
installer = "uv"
111+
path = ".venv"
111112
pre-install-commands = ["uv pip install --group dev -e ."]
112113

113114
[tool.hatch.envs.default.scripts]
@@ -123,6 +124,7 @@ requires = ["hatch-vcs", "hatchling", "packaging"]
123124
# supported Python versions.
124125
[tool.hatch.envs.test]
125126
installer = "uv"
127+
path = ".venv/test"
126128
pre-install-commands = ["uv pip install --group test -e ."]
127129

128130
[[tool.hatch.envs.test.matrix]]

pact-python-ffi/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ requires = ["hatch-vcs", "hatchling", "packaging", "cffi"]
9494
[tool.hatch.envs.default]
9595
extra-dependencies = ["hatch-vcs", "hatchling", "packaging", "cffi"]
9696
installer = "uv"
97+
path = ".venv"
9798
pre-install-commands = ["uv pip install --group dev -e ."]
9899

99100
# Update paths to ensure the shared library can be found
@@ -115,6 +116,7 @@ requires = ["hatch-vcs", "hatchling", "packaging", "cffi"]
115116
# supported Python versions.
116117
[tool.hatch.envs.test]
117118
installer = "uv"
119+
path = ".venv/test"
118120
pre-install-commands = ["uv pip install --group test -e ."]
119121

120122
# Update paths to ensure the shared library can be found

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ requires = ["hatch-vcs", "hatchling"]
186186
[tool.hatch.envs.default]
187187
extra-dependencies = ["hatchling", "hatch-vcs"]
188188
installer = "uv"
189+
path = ".venv"
189190
# This is require to get around an incompatibility between hatch and uv
190191
# See: https://github.com/pypa/hatch/issues/1639
191192
# See: https://github.com/pypa/hatch/issues/1852
@@ -217,6 +218,7 @@ requires = ["hatch-vcs", "hatchling"]
217218
# Test environment for running unit tests.
218219
[tool.hatch.envs.test]
219220
installer = "uv"
221+
path = ".venv/test"
220222
pre-install-commands = ["uv pip install --group test -e ."]
221223

222224
[[tool.hatch.envs.test.matrix]]
@@ -226,6 +228,7 @@ requires = ["hatch-vcs", "hatchling"]
226228
# supported Python versions.
227229
[tool.hatch.envs.example]
228230
installer = "uv"
231+
path = ".venv/example"
229232
pre-install-commands = ["uv pip install --group example -e ."]
230233

231234
[tool.hatch.envs.example.scripts]
@@ -237,6 +240,7 @@ requires = ["hatch-vcs", "hatchling"]
237240
[tool.hatch.envs.v2-test]
238241
features = ["v2"]
239242
installer = "uv"
243+
path = ".venv/v2-test"
240244
pre-install-commands = ["uv pip install --group test-v2 -e ."]
241245

242246
[tool.hatch.envs.v2-test.scripts]
@@ -249,6 +253,7 @@ requires = ["hatch-vcs", "hatchling"]
249253
[tool.hatch.envs.v2-example]
250254
features = ["v2"]
251255
installer = "uv"
256+
path = ".venv/v2-example"
252257
pre-install-commands = ["uv pip install --group example-v2 -e ."]
253258

254259
[tool.hatch.envs.v2-example.scripts]

0 commit comments

Comments
 (0)