Skip to content

Commit 731bda9

Browse files
committed
Migrate to uv
1 parent b9649bb commit 731bda9

File tree

6 files changed

+482
-601
lines changed

6 files changed

+482
-601
lines changed

.github/workflows/coverage.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,21 @@ jobs:
1414
- name: Check out
1515
uses: actions/checkout@v5
1616

17-
- uses: snok/install-poetry@v1
18-
with:
19-
version: 1.3.2
20-
virtualenvs-create: true
21-
virtualenvs-in-project: true
22-
2317
- name: Set up Python 3.13
2418
uses: actions/setup-python@v6
2519
with:
2620
python-version: "3.13"
27-
cache: poetry
21+
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v4
24+
with:
25+
enable-cache: true
2826

2927
- name: Install requirements
30-
run: poetry install
28+
run: uv sync
3129

3230
- name: Run tests
33-
run: poetry run coverage run -m pytest --cov=django_fsm --cov-report=xml
31+
run: uv run coverage run -m pytest --cov=django_fsm --cov-report=xml
3432

3533
- name: Upload coverage reports to Codecov
3634
uses: codecov/codecov-action@v5

.pre-commit-config.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,36 +20,28 @@ repos:
2020
- id: trailing-whitespace
2121

2222
- repo: https://github.com/crate-ci/typos
23-
rev: v1.37.2
23+
rev: v1.39.0
2424
hooks:
2525
- id: typos
2626
args: []
2727
types_or:
2828
- python
2929

3030
- repo: https://github.com/asottile/pyupgrade
31-
rev: v3.20.0
31+
rev: v3.21.0
3232
hooks:
3333
- id: pyupgrade
3434
args:
3535
- "--py38-plus"
3636

3737
- repo: https://github.com/adamchainz/django-upgrade
38-
rev: 1.28.0
38+
rev: 1.29.1
3939
hooks:
4040
- id: django-upgrade
4141
args: [--target-version, "4.2"]
4242

43-
44-
- repo: https://github.com/python-poetry/poetry
45-
rev: 2.2.1
46-
hooks:
47-
- id: poetry-check
48-
additional_dependencies:
49-
- poetry-plugin-sort
50-
5143
- repo: https://github.com/astral-sh/ruff-pre-commit
52-
rev: v0.13.3
44+
rev: v0.14.3
5345
hooks:
5446
- id: ruff-format
5547
- id: ruff-check

0 commit comments

Comments
 (0)