forked from pygame/pygame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
57 lines (52 loc) · 1.7 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
48
49
50
51
52
53
54
55
56
57
# 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/psf/black-pre-commit-mirror
rev: 24.4.0
hooks:
- id: black
args: [--skip-string-normalization]
exclude: |
(?x)^(
^buildconfig/.*$
| ^docs/reST/.*$
| docs/es/conf.py
| setup.py
)$
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.3
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/pypm.c
| src_c/SDL_gfx/SDL_gfxPrimitives.c
| src_c/SDL_gfx/SDL_gfxPrimitives.h
| src_c/SDL_gfx/SDL_gfxPrimitives_font.h
| src_c/sdlmain_osx.m
)$
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
args: ["--skip=docs/es/*,src_c/*,setup.py,*.json"]
additional_dependencies:
- tomli
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.3.7
hooks:
- id: ruff
args: [
--exclude, setup.py,
--extend-ignore, "E401,E402,E701,E721,E722,E731,E741,F401,F403,F405,F821,F841",
--extend-select, "ASYNC,C4,PERF,W",
# --line-length, "159",
--target-version, py37,
]