2024-01-09 20:47:16 +08:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
2024-02-28 21:25:35 +08:00
|
|
|
rev: v17.0.6
|
2024-01-09 20:47:16 +08:00
|
|
|
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
|
2024-02-28 21:25:35 +08:00
|
|
|
rev: 24.2.0
|
2024-01-09 20:47:16 +08:00
|
|
|
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)^(
|
|
|
|
tests/python_build.*|
|
|
|
|
.*thirdparty.*|
|
|
|
|
.*platform/android/java/lib/src/com.*|
|
|
|
|
.*-so_wrap.*|
|
|
|
|
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.*
|
|
|
|
)
|
2024-02-28 04:09:04 +08:00
|
|
|
|
|
|
|
- id: dotnet-format
|
|
|
|
name: dotnet-format
|
|
|
|
language: python
|
|
|
|
entry: python3 misc/scripts/dotnet_format.py
|
|
|
|
types_or: [c#]
|