Skip to content

Commit d09791d

Browse files
committed
chore: Use locked environments
1 parent fb55226 commit d09791d

File tree

2 files changed

+13
-31
lines changed

2 files changed

+13
-31
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@ updates:
1010
actions-infrastructure:
1111
patterns:
1212
- "actions/*"
13+
- package-ecosystem: uv
14+
directory: "/"
15+
schedule:
16+
interval: monthly
17+
groups:
18+
uv:
19+
patterns:
20+
- "*"

tox.ini

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ pass_env =
4747
CLICOLOR_FORCE
4848
extras =
4949
cli
50+
runner =
51+
!min: uv-venv-lock-runner
52+
min: uv-venv-runner
5053
dependency_groups =
5154
test
5255
uv_resolution =
@@ -61,20 +64,13 @@ commands =
6164
--junitxml=test-results.xml {posargs}
6265
coverage xml
6366

64-
[testenv:docs]
65-
description = Build documentation site
66-
labels = docs
67-
allowlist_externals = make
68-
extras = doc
69-
commands =
70-
make -C doc html
71-
7267
[testenv:style{,-fix}]
7368
description = Check and attempt to fix style
7469
labels = check
7570
deps =
7671
ruff
7772
skip_install = true
73+
runner = uv-venv-runner
7874
commands =
7975
fix: ruff check --fix src/
8076
fix: ruff format src/
@@ -87,29 +83,7 @@ labels = check
8783
deps =
8884
codespell[toml]
8985
skip_install = true
86+
runner = uv-venv-runner
9087
commands =
9188
fix: codespell -w {posargs}
9289
!fix: codespell {posargs}
93-
94-
[testenv:build{,-strict}]
95-
labels =
96-
check
97-
pre-release
98-
deps =
99-
build
100-
twine
101-
skip_install = true
102-
set_env =
103-
build-strict: PYTHONWARNINGS=error,once:Unimplemented abstract methods {'locate_file'}:DeprecationWarning:pip._internal.metadata.importlib._dists,once:pkg_resources is deprecated as an API.:DeprecationWarning:pip._internal.metadata.importlib._envs
104-
commands =
105-
python -m build
106-
python -m twine check dist/*
107-
108-
[testenv:publish]
109-
depends = build
110-
labels = release
111-
deps =
112-
twine
113-
skip_install = true
114-
commands =
115-
python -m twine upload dist/*

0 commit comments

Comments
 (0)