2024-01-09 13:47:16 +01:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
2024-02-28 14:25:35 +01:00
|
|
|
rev: v17.0.6
|
2024-01-09 13:47:16 +01: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 14:25:35 +01:00
|
|
|
rev: 24.2.0
|
2024-01-09 13:47:16 +01: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)^(
|
|
|
|
.*thirdparty.*|
|
|
|
|
.*-so_wrap.*|
|
2024-03-12 15:07:09 +01:00
|
|
|
core/math/bvh_.*\.inc$|
|
|
|
|
platform/android/java/lib/src/com.*|
|
2024-01-09 13:47:16 +01:00
|
|
|
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-27 21:09:04 +01:00
|
|
|
|
|
|
|
- id: dotnet-format
|
|
|
|
name: dotnet-format
|
|
|
|
language: python
|
|
|
|
entry: python3 misc/scripts/dotnet_format.py
|
|
|
|
types_or: [c#]
|