Skip to content

Commit 83f76e7

Browse files
committed
chore: migrate to uv
1 parent b5d658b commit 83f76e7

File tree

5 files changed

+1541
-1826
lines changed

5 files changed

+1541
-1826
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,15 @@ jobs:
4141
runs-on: ubuntu-latest
4242
steps:
4343
- uses: actions/checkout@v5
44-
- name: Set up Python
45-
uses: actions/setup-python@v6
44+
- name: Set up uv
45+
uses: astral-sh/setup-uv@v7
4646
with:
4747
python-version: ${{ matrix.python-version }}
48-
- uses: snok/install-poetry@v1.4.1
4948
- name: Install Dependencies
50-
run: poetry install
49+
run: uv pip sync --all-extras
5150
shell: bash
5251
- name: Test with Pytest
53-
run: poetry run pytest --log-cli-level=DEBUG -vv -s
52+
run: pytest --log-cli-level=DEBUG -vv -s
5453
shell: bash
5554
release:
5655
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
exclude: "CHANGELOG.md"
4-
default_stages: [ commit ]
4+
default_stages: [ pre-commit ]
55

66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -17,10 +17,11 @@ repos:
1717
- id: detect-private-key
1818
- id: end-of-file-fixer
1919
- id: trailing-whitespace
20-
- repo: https://github.com/python-poetry/poetry
21-
rev: 1.7.1
20+
- repo: https://github.com/astral-sh/uv-pre-commit
21+
rev: 0.9.1
2222
hooks:
23-
- id: poetry-check
23+
- id: uv-sync
24+
args: ["--locked", "--all-packages"]
2425
- repo: https://github.com/codespell-project/codespell
2526
rev: v2.2.6
2627
hooks:

0 commit comments

Comments
 (0)