Skip to content

Commit f013c76

Browse files
authored
Update ci.yml
1 parent e3537f1 commit f013c76

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
lint:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212

1313
steps:
1414
- name: Checkout repository
@@ -18,12 +18,22 @@ jobs:
1818
uses: actions/setup-python@v5
1919
with:
2020
python-version: "3.11"
21+
22+
- name: Cache pip
23+
uses: actions/cache@v3
24+
with:
25+
path: ~/.cache/pip
26+
key: ${{ runner.os }}-pip-ruff-v1
2127

2228
- name: Install dependencies
2329
run: |
2430
python -m pip install --upgrade pip
2531
pip install ruff
2632
33+
- name: Auto-fix code with Ruff
34+
run: |
35+
ruff format . --fix --line-length 88 --exclude migrations,venv || true
36+
2737
- name: Run Ruff linter
2838
run: |
29-
ruff check .
39+
ruff check . --select ALL --ignore F401,W391 --line-length 88

0 commit comments

Comments
 (0)