We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3537f1 commit f013c76Copy full SHA for f013c76
.github/workflows/ci.yml
@@ -8,7 +8,7 @@ on:
8
9
jobs:
10
lint:
11
- runs-on: ubuntu-latest
+ runs-on: ubuntu-22.04
12
13
steps:
14
- name: Checkout repository
@@ -18,12 +18,22 @@ jobs:
18
uses: actions/setup-python@v5
19
with:
20
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
27
28
- name: Install dependencies
29
run: |
30
python -m pip install --upgrade pip
31
pip install ruff
32
33
+ - name: Auto-fix code with Ruff
34
+ run: |
35
+ ruff format . --fix --line-length 88 --exclude migrations,venv || true
36
37
- name: Run Ruff linter
38
- ruff check .
39
+ ruff check . --select ALL --ignore F401,W391 --line-length 88
0 commit comments