File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Check with pre-commit"
2
+ on :
3
+ - " push"
4
+ - " pull_request"
5
+
6
+ jobs :
7
+
8
+ check-with-pre-commit :
9
+ runs-on : " ubuntu-latest"
10
+ strategy :
11
+ matrix :
12
+ python-version : ["3.11"]
13
+
14
+ steps :
15
+ - uses : " actions/checkout@v3"
16
+
17
+ - name : " Set up Python ${{ matrix.python-version }}"
18
+ uses : " actions/setup-python@v4"
19
+ with :
20
+ python-version : " ${{ matrix.python-version }}"
21
+
22
+ - name : " Install pre-commit"
23
+ run : " pip install pre-commit"
24
+
25
+ - name : " Run checks with pre-commit"
26
+ run : " pre-commit run --all-files --show-diff-on-failure --color always"
Original file line number Diff line number Diff line change 3
3
rev : " v0.0.269"
4
4
hooks :
5
5
- id : " ruff"
6
+ # NOTE: "--exit-non-zero-on-fix" is important for CI to function
7
+ # correctly!
6
8
args : ["--fix", "--exit-non-zero-on-fix"]
7
9
8
10
- repo : " https://github.com/psf/black"
You can’t perform that action at this time.
0 commit comments