Skip to content

Commit 31d5d3e

Browse files
Your Namealphatownsman
authored andcommitted
use uv for package mgmt
1 parent b6f773d commit 31d5d3e

File tree

7 files changed

+2302
-490
lines changed

7 files changed

+2302
-490
lines changed

.github/workflows/check.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
run: |
2020
python -m pip install pre_commit
2121
SKIP=pyright python -m pre_commit run -a --show-diff-on-failure
22+
2223
type-checker:
2324
runs-on: ubuntu-latest
2425
strategy:
@@ -33,10 +34,11 @@ jobs:
3334
with:
3435
python-version: ${{ matrix.python-version }}
3536
cache: pip
36-
- name: Install dependencies
37+
- name: Install uv
38+
uses: astral-sh/setup-uv@v6
39+
- name: Install Dependencies
3740
run: |
38-
python -m pip install -r requirements-dev.lock
39-
python -m pip install -r requirements.lock
41+
uv sync
4042
- name: Run pyright
4143
run: |
4244
python -m pyright

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ jobs:
4949
with:
5050
python-version: ${{ matrix.python-version }}
5151
cache: pip
52+
- name: Install uv
53+
uses: astral-sh/setup-uv@v6
5254
- name: Install Dependencies
5355
run: |
54-
pip install -r requirements-dev.lock
56+
uv sync
5557
sudo apt install -y gettext
5658
- name: Run Tests
5759
env:

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ repos:
2424
- id: requirements-txt-fixer
2525
- id: mixed-line-ending
2626

27+
- repo: https://github.com/astral-sh/uv-pre-commit
28+
rev: 0.8.8
29+
hooks:
30+
- id: uv-lock
31+
- id: pip-compile
32+
name: requirements.lock
33+
files: ^pyproject\.toml$
34+
args: [pyproject.toml, --no-annotate, --no-header, -q, -o, requirements.lock]
35+
2736
- repo: https://github.com/astral-sh/ruff-pre-commit
2837
rev: v0.12.8
2938
hooks:

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ dependencies = [
6161
"django-mcp>=0.1.0",
6262
]
6363

64-
[tool.rye]
65-
managed = true
66-
virtual = true
67-
lock-with-sources = false
64+
[tool.uv]
6865
dev-dependencies = [
6966
"pre-commit>=4.0.1",
7067
"django-stubs>=5.1.2",

requirements-dev.lock

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

0 commit comments

Comments
 (0)