Skip to content

Commit 3313c9f

Browse files
committed
chore: fix ruff and run it in CI
1 parent 108539c commit 3313c9f

File tree

3 files changed

+205
-180
lines changed

3 files changed

+205
-180
lines changed

.github/workflows/ruff.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Ruff Linting and Formatting
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
ruff:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up Python
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.10'
16+
- name: Install uv
17+
run: pip install uv
18+
- name: Create venv
19+
run: uv venv
20+
- name: Install dependencies
21+
run: |
22+
uv pip install .
23+
uv pip install .[dev]
24+
- name: Run Ruff linter
25+
run: uv run ruff check .
26+
- name: Run Ruff formatter
27+
run: uv run ruff format . --check

0 commit comments

Comments
 (0)