Skip to content

Commit d6c79d5

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

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ jobs:
1818
- uses: actions/setup-python@v5
1919
with:
2020
python-version: '3.x'
21-
cache: 'pip'
2221

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

26-
- name: ruff
27-
run: ruff check --output-format=github .
28+
- run: uv run ruff check --output-format=github
2829

2930
- uses: pnpm/action-setup@v3
3031
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)