mirror of
https://github.com/godotengine/godot.git
synced 2024-12-27 11:24:59 +08:00
e520359147
It was only running on the first file passed by pre-commit, instead of all. Fixes compatibility with Windows paths to get the basename.
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
rev: v17.0.6
|
|
hooks:
|
|
- id: clang-format
|
|
files: \.(c|h|cpp|hpp|cc|cxx|m|mm|inc|java|glsl)$
|
|
types_or: [text]
|
|
exclude: |
|
|
(?x)^(
|
|
tests/python_build.*|
|
|
.*thirdparty.*|
|
|
.*platform/android/java/lib/src/com.*|
|
|
.*-so_wrap.*
|
|
)
|
|
|
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
rev: 24.2.0
|
|
hooks:
|
|
- id: black
|
|
files: (\.py$|SConstruct|SCsub)
|
|
types_or: [text]
|
|
exclude: .*thirdparty.*
|
|
args:
|
|
- --line-length=120
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: make-rst
|
|
name: make-rst
|
|
entry: python3 doc/tools/make_rst.py doc/classes modules platform --dry-run --color
|
|
pass_filenames: false
|
|
language: python
|
|
files: ^(doc|modules|platform).*xml$
|
|
|
|
- id: copyright-headers
|
|
name: copyright-headers
|
|
language: python
|
|
files: \.(c|h|cpp|hpp|cc|cxx|m|mm|inc|java)$
|
|
entry: python3 misc/scripts/copyright_headers.py
|
|
exclude: |
|
|
(?x)^(
|
|
.*thirdparty.*|
|
|
.*-so_wrap.*|
|
|
core/math/bvh_.*\.inc$|
|
|
platform/android/java/lib/src/com.*|
|
|
platform/android/java/lib/src/org/godotengine/godot/gl/GLSurfaceView.*|
|
|
platform/android/java/lib/src/org/godotengine/godot/gl/EGLLogWrapper.*|
|
|
platform/android/java/lib/src/org/godotengine/godot/utils/ProcessPhoenix.*
|
|
)
|
|
|
|
- id: dotnet-format
|
|
name: dotnet-format
|
|
language: python
|
|
entry: python3 misc/scripts/dotnet_format.py
|
|
types_or: [c#]
|