Skip to content

Commit f51508f

Browse files
committed
chore: fully utilize uv runner in tox
tox was not using uv runner properly.
1 parent cca72f4 commit f51508f

File tree

10 files changed

+48
-67
lines changed

10 files changed

+48
-67
lines changed

packages/gooddata-dbt/tox.ini

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,18 @@
33
envlist = py3{9,10,11,12,13}
44

55
[testenv]
6+
runner = uv-venv-lock-runner
67
package = wheel
78
wheel_build_env = .pkg
8-
deps =
9-
-e../../gooddata-api-client
10-
-e../gooddata-sdk
11-
-e../tests-support
12-
setenv=
13-
PYTHONDONTWRITEBYTECODE=1
9+
dependency_groups =
10+
test
1411
commands =
15-
uv pip install --group test
1612
pytest -v --cov=src/gooddata_dbt --cov-report=xml tests {posargs}
1713

1814
[testenv:mypy]
19-
basepython = python3.13
15+
runner = uv-venv-lock-runner
2016
skip_install = true
21-
deps =
22-
-e../../gooddata-api-client
23-
-e../gooddata-sdk
17+
dependency_groups =
18+
type
2419
commands =
25-
uv pip install --group type
2620
mypy src/gooddata_dbt

packages/gooddata-fdw/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ test = [
5656
# TODO - Bump the version together with bumping the version of openapi generator
5757
"urllib3==1.26.9",
5858
"pyyaml",
59+
"tests_support",
5960
]
6061
type = [
6162
"mypy~=1.11.2",

packages/gooddata-fdw/tox.ini

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,20 @@
33
envlist = py3{9,10,11,12,13}
44

55
[testenv]
6+
runner = uv-venv-lock-runner
67
package = wheel
78
wheel_build_env = .pkg
8-
deps =
9-
-e../../gooddata-api-client
10-
-e../gooddata-sdk
11-
-e../tests-support
12-
setenv=
13-
PYTHONDONTWRITEBYTECODE=1
9+
dependency_groups =
10+
test
1411
commands =
15-
uv pip install --group test
1612
pytest -v --cov=src/gooddata_fdw --cov-report=xml tests {posargs}
1713

1814
[testenv:mypy]
19-
basepython = python3.13
15+
runner = uv-venv-lock-runner
2016
skip_install = true
21-
deps =
22-
-e../../gooddata-api-client
23-
-e../gooddata-sdk
24-
-e../tests-support
17+
dependency_groups =
18+
type
2519
commands =
26-
uv pip install --group type
2720
mypy src/gooddata_fdw
2821

2922
[testenv:docs]

packages/gooddata-flight-server/tox.ini

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,20 @@
33
envlist = py3{9,10,11,12,13}
44

55
[testenv]
6+
runner = uv-venv-lock-runner
67
package = wheel
78
wheel_build_env = .pkg
8-
deps =
9-
-e../tests-support
10-
setenv=
11-
PYTHONDONTWRITEBYTECODE=1
9+
dependency_groups =
10+
test
1211
commands =
13-
uv pip install --group test
1412
pytest -v --cov=src/gooddata_flight_server --cov-report=xml tests {posargs}
1513

1614
[testenv:mypy]
17-
basepython = python3.13
15+
runner = uv-venv-lock-runner
1816
skip_install = true
17+
dependency_groups =
18+
type
1919
commands =
20-
uv pip install --group type
2120
mypy src/gooddata_flight_server
2221

2322
[testenv:docs]

packages/gooddata-pandas/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ test = [
6464
"vcrpy~=7.0.0",
6565
"urllib3==1.26.9",
6666
"python-dotenv~=1.0.0",
67-
"pyyaml"
67+
"pyyaml",
68+
"tests_support",
6869
]
6970
type = [
7071
"mypy~=1.11.2",

packages/gooddata-pandas/tox.ini

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,20 @@
33
envlist = py3{9,10,11,12,13}
44

55
[testenv]
6+
runner = uv-venv-lock-runner
67
package = wheel
78
wheel_build_env = .pkg
8-
deps =
9-
-e../../gooddata-api-client
10-
-e../gooddata-sdk
11-
-e../tests-support
12-
setenv=
13-
PYTHONDONTWRITEBYTECODE=1
9+
dependency_groups =
10+
test
1411
commands =
15-
uv pip install --group test
1612
pytest -v --cov=src/gooddata_pandas --cov-report=xml tests {posargs}
1713

1814
[testenv:mypy]
19-
basepython = python3.13
15+
runner = uv-venv-lock-runner
2016
skip_install = true
21-
deps =
22-
-e../../gooddata-api-client
23-
-e../gooddata-sdk
17+
dependency_groups =
18+
type
2419
commands =
25-
uv pip install --group type
2620
mypy src/gooddata_pandas
2721

2822
[testenv:docs]
Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
# (C) 2025 GoodData Corporation
22
[tox]
3-
envlist = py3{10,11,12,13}, mypy
3+
envlist = py3{10,11,12,13}
44

55
[testenv]
6+
runner = uv-venv-lock-runner
67
package = wheel
78
wheel_build_env = .pkg
8-
deps =
9-
-e../../gooddata-api-client
10-
-e../gooddata-sdk
11-
setenv=
12-
PYTHONDONTWRITEBYTECODE=1
9+
dependency_groups =
10+
test
1311
commands =
14-
uv pip install --group test
1512
pytest -v --cov=src/gooddata_pipelines --cov-report=xml tests {posargs}
1613

1714
[testenv:mypy]
18-
basepython = python3.13
15+
runner = uv-venv-lock-runner
1916
skip_install = true
20-
deps =
21-
-e../gooddata-sdk
17+
dependency_groups =
18+
type
2219
commands =
23-
uv pip install --group type
2420
mypy src/gooddata_pipelines

packages/gooddata-sdk/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ test = [
6666
"vcrpy~=7.0.0",
6767
"urllib3==1.26.9",
6868
"python-dotenv~=1.0.0",
69-
"deepdiff~=8.5.0"
69+
"deepdiff~=8.5.0",
70+
"tests_support",
7071
]
7172
type = [
7273
"mypy~=1.11.2",

packages/gooddata-sdk/tox.ini

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,20 @@
33
envlist = py3{9,10,11,12,13}
44

55
[testenv]
6+
runner = uv-venv-lock-runner
67
package = wheel
78
wheel_build_env = .pkg
8-
deps =
9-
-e../../gooddata-api-client
10-
-e../tests-support
11-
setenv=
12-
PYTHONDONTWRITEBYTECODE=1
9+
dependency_groups =
10+
test
1311
commands =
14-
uv pip install --group test
1512
pytest -v --cov=src/gooddata_sdk --cov-report=xml tests {posargs}
1613

1714
[testenv:mypy]
18-
basepython = python3.13
15+
runner = uv-venv-lock-runner
1916
skip_install = true
20-
deps =
21-
-e../../gooddata-api-client
17+
dependency_groups =
18+
type
2219
commands =
23-
uv pip install --group type
2420
mypy src/gooddata_sdk
2521

2622
[testenv:docs]

uv.lock

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)