@@ -16,40 +16,39 @@ set_env =
1616 PYTHONPATH = {tox_root}/src:{tox_root}/lib
1717 PY_COLORS = 1
1818allowlist_externals =
19- poetry
19+ uv
2020
2121[testenv:format]
2222description = Apply coding style standards to code
2323commands_pre =
24- poetry install --only format
24+ uv sync --active --group format
2525commands =
26- poetry lock
27- poetry run ruff check --fix {[vars]all_path}
28- poetry run ruff format {[vars]all_path}
26+ uv run --active ruff check --fix {[vars]all_path}
27+ uv run --active ruff format {[vars]all_path}
2928
3029[testenv:lint]
3130description = Check code against coding style standards
3231allowlist_externals =
3332 {[testenv]allowlist_externals}
3433 find
3534commands_pre =
36- poetry install --only lint
35+ uv sync --active --group lint
3736commands =
38- poetry check --lock
39- poetry run codespell {[vars]all_path}
40- poetry run ruff check {[vars]all_path}
41- poetry run ruff format --check --diff {[vars]all_path}
42- find {[vars]all_path} -type f \( -name " *.sh" -o -name " *.bash" \) -exec poetry run shellcheck --color =always \{\} +
37+ uv lock --check
38+ uv run --active codespell {[vars]all_path}
39+ uv run --active ruff check {[vars]all_path}
40+ uv run --active ruff format --check --diff {[vars]all_path}
41+ find {[vars]all_path} -type f \( -name " *.sh" -o -name " *.bash" \) -exec uv run --active shellcheck --color =always \{\} +
4342
4443[testenv:unit]
4544description = Run unit tests
4645commands_pre =
47- poetry install --only main, charm- libs, unit
46+ uv sync --active --group charm --group libs --group unit
4847commands =
49- poetry run coverage run --source ={[vars]src_path} \
48+ uv run --active coverage run --source ={[vars]src_path} \
5049 -m pytest -v --tb native -s {posargs} {[vars]tests_path}/unit
51- poetry run coverage report
52- poetry run coverage xml
50+ uv run --active coverage report
51+ uv run --active coverage xml
5352
5453[testenv:integration]
5554description = Run integration tests
@@ -60,6 +59,6 @@ pass_env =
6059 GCP_ACCESS_KEY
6160 GCP_SECRET_KEY
6261commands_pre =
63- poetry install --only integration
62+ uv sync --active --group integration
6463commands =
65- poetry run pytest -v --tb native --log-cli-level =INFO -s --ignore ={[vars]tests_path}/unit/ {posargs}
64+ uv run --active pytest -v --tb native --log-cli-level =INFO -s --ignore ={[vars]tests_path}/unit/ {posargs}
0 commit comments