-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4200 from cclauss/patch-2
`python3 setup.py lint` is deprecated: Let's lint with `pre-commit`
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# 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.3.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.2 | ||
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 | ||
)$ |