Skip to content

Commit fe42635

Browse files
Update tox.ini
1 parent 20b0b0d commit fe42635

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

tox.ini

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,40 +16,39 @@ set_env =
1616
PYTHONPATH = {tox_root}/src:{tox_root}/lib
1717
PY_COLORS = 1
1818
allowlist_externals =
19-
poetry
19+
uv
2020

2121
[testenv:format]
2222
description = Apply coding style standards to code
2323
commands_pre =
24-
poetry install --only format
24+
uv sync --active --group format
2525
commands =
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]
3130
description = Check code against coding style standards
3231
allowlist_externals =
3332
{[testenv]allowlist_externals}
3433
find
3534
commands_pre =
36-
poetry install --only lint
35+
uv sync --active --group lint
3736
commands =
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]
4544
description = Run unit tests
4645
commands_pre =
47-
poetry install --only main,charm-libs,unit
46+
uv sync --active --group charm --group libs --group unit
4847
commands =
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]
5554
description = Run integration tests
@@ -60,6 +59,6 @@ pass_env =
6059
GCP_ACCESS_KEY
6160
GCP_SECRET_KEY
6261
commands_pre =
63-
poetry install --only integration
62+
uv sync --active --group integration
6463
commands =
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

Comments
 (0)