File tree Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ lint :
11+ runs-on : ubuntu-24.04
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+
17+ - name : Set up Python
18+ uses : actions/setup-python@v5
19+ with :
20+ python-version : " 3.12.3"
21+
22+ - name : Cache pip
23+ uses : actions/cache@v3
24+ with :
25+ path : ~/.cache/pip
26+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
27+ restore-keys : |
28+ ${{ runner.os }}-pip-
29+
30+ - name : Install dependencies
31+ run : |
32+ python -m pip install --upgrade pip
33+ pip install ruff
34+
35+ - name : Auto-fix code with Ruff
36+ run : |
37+ ruff format . --fix --line-length 88 --exclude migrations,venv || true
38+
39+ - name : Run Ruff linter
40+ run : |
41+ ruff check . --select ALL --ignore F401,W391 --line-length 88
Original file line number Diff line number Diff line change 1+ """config module."""
Original file line number Diff line number Diff line change 1+ """main module."""
You can’t perform that action at this time.
0 commit comments