File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 11
11
- ' **.c'
12
12
- ' **.py'
13
13
- ' **.rst'
14
+ - ' .pre-commit-config.yaml'
14
15
15
16
pull_request :
16
17
branches : main
19
20
- ' **.c'
20
21
- ' **.py'
21
22
- ' **.rst'
23
+ - ' .pre-commit-config.yaml'
22
24
23
25
concurrency :
24
26
group : ${{ github.workflow }}-${{ github.ref }}-format-lint
25
27
cancel-in-progress : true
26
28
27
29
jobs :
30
+ pre-commit :
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+
34
+ - uses : actions/setup-python@v5
35
+ with :
36
+ python-version : 3.x
37
+ -
uses :
pre-commit/[email protected]
38
+
28
39
format-lint-code-check :
29
40
runs-on : ubuntu-22.04
30
41
Original file line number Diff line number Diff line change
1
+ # Learn more about this config here: https://pre-commit.com/
2
+
3
+ # To enable these pre-commit hooks run:
4
+ # `brew install pre-commit` or `python3 -m pip install pre-commit`
5
+ # Then in the project root directory run `pre-commit install`
6
+
7
+ repos :
8
+ - repo : https://github.com/psf/black-pre-commit-mirror
9
+ rev : 24.3.0
10
+ hooks :
11
+ - id : black
12
+ exclude : |
13
+ (?x)^(
14
+ ^buildconfig/.*$
15
+ | ^docs/reST/.*$
16
+ | setup.py
17
+ )$
18
+
19
+
20
+ - repo : https://github.com/pre-commit/mirrors-clang-format
21
+ rev : v18.1.2
22
+ hooks :
23
+ - id : clang-format
24
+ exclude : |
25
+ (?x)^(
26
+ ^src_c/_sdl2/.*$
27
+ | ^src_c/doc/.*$
28
+ | docs/reST/_static/script.js
29
+ | docs/reST/_templates/header.h
30
+ | src_c/include/sse2neon.h
31
+ | src_c/pypm.c
32
+ )$
You can’t perform that action at this time.
0 commit comments