@@ -16,40 +16,39 @@ set_env =
16
16
PYTHONPATH = {tox_root}/src:{tox_root}/lib
17
17
PY_COLORS = 1
18
18
allowlist_externals =
19
- poetry
19
+ uv
20
20
21
21
[testenv:format]
22
22
description = Apply coding style standards to code
23
23
commands_pre =
24
- poetry install --only format
24
+ uv sync --active --group format
25
25
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}
29
28
30
29
[testenv:lint]
31
30
description = Check code against coding style standards
32
31
allowlist_externals =
33
32
{[testenv]allowlist_externals}
34
33
find
35
34
commands_pre =
36
- poetry install --only lint
35
+ uv sync --active --group lint
37
36
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 \{\} +
43
42
44
43
[testenv:unit]
45
44
description = Run unit tests
46
45
commands_pre =
47
- poetry install --only main, charm- libs, unit
46
+ uv sync --active --group charm --group libs --group unit
48
47
commands =
49
- poetry run coverage run --source ={[vars]src_path} \
48
+ uv run --active coverage run --source ={[vars]src_path} \
50
49
-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
53
52
54
53
[testenv:integration]
55
54
description = Run integration tests
@@ -60,6 +59,6 @@ pass_env =
60
59
GCP_ACCESS_KEY
61
60
GCP_SECRET_KEY
62
61
commands_pre =
63
- poetry install --only integration
62
+ uv sync --active --group integration
64
63
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