Skip to content

Commit 19cdcd7

Browse files
committed
use uv in CI
also ignore uv.lock
1 parent 1fd72b7 commit 19cdcd7

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ jobs:
2020
python-version: '3.x'
2121
cache: 'pip'
2222

23-
- name: install python deps
24-
run: pip3 install --quiet --requirement requirements.txt ruff
23+
- uses: astral-sh/setup-uv@v6 # https://docs.astral.sh/uv/guides/integration/github
24+
with:
25+
enable-cache: true
26+
27+
- run: uv sync
2528

26-
- name: ruff
27-
run: ruff check --output-format=github .
29+
- run: uv run ruff check --output-format=github
2830

2931
- uses: pnpm/action-setup@v3
3032
with:

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/__pycache__/
2-
/raw/
3-
/node_modules/
42
/config.py
53
/ddd.db
64
/ddd_update.db
75
/markov/
8-
/ts/.tsbuildinfo
6+
/node_modules/
7+
/raw/
8+
/static/emoji_user_stats_*.json
99
/static/*.js
1010
/static/*.js.map
11-
/static/emoji_user_stats_*.json
11+
/ts/.tsbuildinfo
12+
/uv.lock

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ dependencies = [
88
'sqlalchemy',
99
'waitress',
1010
]
11+
[dependency-groups]
12+
dev = [
13+
'ruff',
14+
]
1115

1216
[tool.ruff]
1317
line-length = 120

0 commit comments

Comments
 (0)