Skip to content

Commit b691d0e

Browse files
ritwik-gclaude
andcommitted
Fix tox configuration for direct usage without uv
- Removed `runner = uv-venv-runner` from all tox environments to ensure compatibility with direct tox usage - Changed from `uv pip install` to standard `pip install` commands in tox environments - Removed tox-uv dependency from pyproject.toml and GitHub Actions workflow - Fixed integration test environment pytest configuration conflict This resolves the KeyError: 'uv-venv-runner' issue when running `tox -e <env>` directly instead of `uv run tox -e <env>`. Now tox works consistently across all environments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f89d8e8 commit b691d0e

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
- name: Install tox
3838
run: |
39-
pip install tox tox-uv
39+
pip install tox
4040
4141
- name: Run tests with tox
4242
run: |

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ dev-dependencies = [
2626
"ruff>=0.1.0",
2727
"mypy>=1.0.0",
2828
"tox>=4.0.0",
29-
"tox-uv>=1.0.0",
3029
]
3130

3231
[tool.ruff]

tox.ini

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ envlist = py39,py310,py311,py312,lint,type-check
33
isolated_build = true
44

55
[testenv]
6-
# Use uv for package management
7-
runner = uv-venv-runner
8-
# Install dependencies via uv
6+
# Install dependencies via standard tox, use uv for editable install
97
deps =
108
pytest>=7.0
119
pytest-cov>=4.0
12-
# Install the package itself in editable mode with uv
10+
# Install the package itself in editable mode
1311
commands_pre =
14-
uv pip install -e .
12+
pip install -e .
1513
commands =
1614
pytest tests/ -v --cov=helm_values_manager --cov-report=xml --cov-report=term
1715
setenv =
@@ -33,32 +31,29 @@ basepython = python3.11
3331
basepython = python3.12
3432

3533
[testenv:lint]
36-
runner = uv-venv-runner
3734
deps =
3835
ruff>=0.1.0
3936
commands =
4037
ruff check .
4138
ruff format --check .
4239

4340
[testenv:type-check]
44-
runner = uv-venv-runner
4541
deps =
4642
mypy>=1.0
4743
types-PyYAML
4844
types-setuptools
4945
commands_pre =
50-
uv pip install -e .
46+
pip install -e .
5147
commands =
5248
mypy helm_values_manager --ignore-missing-imports
5349

5450
[testenv:integration]
55-
runner = uv-venv-runner
5651
deps =
5752
pytest>=7.0
5853
commands_pre =
59-
uv pip install -e .
54+
pip install -e .
6055
commands =
61-
pytest tests/test_integration.py -v
56+
pytest tests/test_integration.py -v --override-ini="addopts="
6257
setenv =
6358
FORCE_COLOR = 0
6459
NO_COLOR = 1

0 commit comments

Comments
 (0)