File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -19,20 +19,23 @@ jobs:
1919 with :
2020 python-version : " 3.12.3"
2121
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+
2230 - name : Install dependencies
2331 run : |
2432 python -m pip install --upgrade pip
2533 pip install ruff
2634
27- - name : Run Ruff linter
35+ - name : Auto-fix code with Ruff
2836 run : |
29- ruff check . \
30- --select ALL \
31- --ignore F401,W391 \
32- --line-length 88
37+ ruff format . --fix --line-length 88 --exclude migrations,venv || true
3338
34- - name : Run Ruff formatter
39+ - name : Run Ruff linter
3540 run : |
36- ruff format . \
37- --line-length 88 \
38- --exclude migrations,venv
41+ ruff check . --select ALL --ignore F401,W391 --line-length 88
You can’t perform that action at this time.
0 commit comments