Skip to content

Commit 1a96979

Browse files
committed
refactor: migrate local dev setup from poetry to uv
1 parent 599b3ba commit 1a96979

File tree

4 files changed

+47
-327
lines changed

4 files changed

+47
-327
lines changed

.github/workflows/pr.yaml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,29 @@ on: [pull_request]
44

55
jobs:
66
lint:
7+
strategy:
8+
matrix:
9+
python-version: ["3.12"]
710
runs-on: ubuntu-latest
11+
812
steps:
913
- name: Check out code
10-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
15+
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v5
18+
with:
19+
pyproject-file: "pyproject.toml"
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v5.3.0
1123
with:
12-
fetch-depth: 0
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Check dependencies
27+
run: |
28+
uv lock --check
29+
1330
1431
- name: Install poetry
1532
run: pipx install poetry
@@ -21,10 +38,10 @@ jobs:
2138
cache: "poetry"
2239
cache-dependency-path: "poetry.lock"
2340

24-
- name: Install dependencies
25-
run: poetry install
41+
- name: Install Python dependencies
42+
run: uv sync
2643

2744
- name: Run code linters
2845
run: |
29-
poetry run ruff check discobuilder
30-
poetry run ruff format --check discobuilder
46+
uv run ruff check discobuilder
47+
uv run ruff format --check discobuilder

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
repos
2+
downstream_builder.egg-info

0 commit comments

Comments
 (0)