File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Ruff
2+ on : [push, pull_request]
3+ jobs :
4+ ruff :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@v4
8+ - uses : tj-actions/changed-files@v45
9+ name : Get changed files
10+ id : changed-files
11+ with :
12+ files : |
13+ **.py
14+ - if : ${{ steps.changed-files.outputs.any_changed == 'true' }}
15+ uses : astral-sh/ruff-action@v3
16+ with :
17+ version : " 0.9.3"
18+ args : " check --fix"
19+ src : ${{ steps.changed-files.outputs.all_changed_files }}
20+ - if : ${{ steps.changed-files.outputs.any_changed == 'true' }}
21+ uses : astral-sh/ruff-action@v3
22+ with :
23+ version : " 0.9.3"
24+ args : " format --check"
25+ src : ${{ steps.changed-files.outputs.all_changed_files }}
Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/astral-sh/ruff-pre-commit
3+ # Ruff version.
4+ rev : v0.9.3
5+ hooks :
6+ # Run the linter.
7+ - id : ruff
8+ # Run the formatter.
9+ - id : ruff-format
You can’t perform that action at this time.
0 commit comments