forked from pygame-community/pygame-ce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
47 lines (43 loc) · 1.35 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Learn more about this config here: https://pre-commit.com/
# To enable these pre-commit hooks run:
# `brew install pre-commit` or `python3 -m pip install pre-commit`
# Then in the project root directory run `pre-commit install`
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
exclude: |
(?x)^(
^docs/licenses/.*$
| ^.*\.svg$
| ^.*\.sfd$
| docs/LGPL.txt
)$
- id: trailing-whitespace
exclude: |
(?x)^(
^docs/licenses/.*$
| ^.*\.svg$
| ^.*\.sfd$
| docs/LGPL.txt
)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
hooks: # See pyproject.toml for configuration options.
- id: ruff-format # Run the formatter
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.4
hooks:
- id: clang-format
exclude: |
(?x)^(
^src_c/_sdl2/.*$
| ^src_c/doc/.*$
| docs/reST/_static/script.js
| docs/reST/_templates/header.h
| src_c/include/sse2neon.h
| src_c/include/pythoncapi_compat.h
| src_c/pypm.c
)$