Skip to content

Commit b83e6c0

Browse files
authored
chore: uv lock and tox updates (leanEthereum#81)
* chore: Use uv lock runner for tox, commit ``uv.lock`` file. - Commit ``uv.lock`` file so that we can better track dependencies. - Use ``uv.lock`` file and specify uv lock runner for tox. This also has an added benefit of not needing to run tox with ``--with=tox-uv`` flag. * chore: remove --with=tox-uv from examples; remove RELEASING.md for now
1 parent 682f15e commit b83e6c0

8 files changed

Lines changed: 1922 additions & 62 deletions

File tree

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
- [ ] Ran `tox` checks to avoid unnecessary CI fails:
1111
```console
12-
uvx --with=tox-uv tox
12+
uvx tox -e all-checks,pytest
1313
```
1414
- [ ] Considered adding appropriate tests for the changes.
1515
- [ ] Considered updating the online docs in the [./docs/](/leanEthereum/leanSpec/tree/main/docs/) directory.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
python-version: ${{ matrix.python-version }}
3535

3636
- name: Run all quality checks via tox
37-
run: uvx --with=tox-uv tox -e all-checks
37+
run: uvx tox -e all-checks
3838

3939
test:
4040
name: Tests - Python ${{ matrix.python-version }} on ${{ matrix.os }}
@@ -56,4 +56,4 @@ jobs:
5656
python-version: ${{ matrix.python-version }}
5757

5858
- name: Run tests via tox
59-
run: uvx --with=tox-uv tox -e pytest
59+
run: uvx tox -e pytest

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ site/
153153

154154
# UV
155155
.uv/
156-
uv.lock
157156

158157
# Ruff
159158
.ruff_cache/

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ you can use `uvx`, which:
127127
* Uses tox-uv for faster dependency installation
128128

129129
```bash
130-
uvx --with=tox-uv tox -e all-checks
130+
uvx tox -e all-checks
131131
```
132132

133133
### Documentation
@@ -210,9 +210,9 @@ you can use `uvx`:
210210

211211
| Task | Command |
212212
|-----------------------------------------|---------------------------------------|
213-
| Run all quality checks (no tests/docs) | `uvx --with=tox-uv tox -e all-checks` |
214-
| Run everything (checks + tests + docs) | `uvx --with=tox-uv tox` |
215-
| Run specific tox environment | `uvx --with=tox-uv tox -e lint` |
213+
| Run all quality checks (no tests/docs) | `uvx tox -e all-checks` |
214+
| Run everything (checks + tests + docs) | `uvx tox` |
215+
| Run specific tox environment | `uvx tox -e lint` |
216216

217217

218218
## Contributing

RELEASING.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ docs = [
4242
"codespell>=2.4.1,<3",
4343
"pyspelling>=2.8.2,<3",
4444
]
45-
dev = ["lean-spec[test,lint,typecheck,docs]", "tox>=4.23.0,<5"]
45+
dev = ["lean-spec[test,lint,typecheck,docs]", "tox>=4.23.0,<5", "tox-uv>=1.29.0"]
4646
mdformat = [
4747
"mdformat-gfm-alerts==2.0.0",
4848
"mdformat-gfm==0.4.1",

tox.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
[tox]
2+
min_version = 4.0
3+
requires =
4+
tox-uv >=1.29
25
env_list =
36
all-checks
47
pytest
58
docs
69
skip_missing_interpreters = true
10+
runner = uv-venv-lock-runner
711

812
[testenv]
9-
basepython = python3
13+
basepython = python3.14
1014
uv_python = >=3.12
1115

1216
[testenv:all-checks]

uv.lock

Lines changed: 1909 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)