-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (36 loc) · 1.03 KB
/
.pre-commit-config.yaml
File metadata and controls
40 lines (36 loc) · 1.03 KB
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
default_language_version:
python: python3
exclude: |
(?x)^(
sentry-cocoa/.*|
sentry-godot/.*
)$
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v20.1.0
hooks:
- id: clang-format
files: \.(c|h|cpp|hpp|cc|hh|cxx|hxx|m|mm|inc|java)$
types_or: [text]
- repo: local
hooks:
- id: copyright-headers
name: copyright-headers
language: python
entry: python misc/scripts/copyright_headers.py
files: \.(c|h|cpp|hpp|cc|hh|cxx|hxx|m|mm|inc|java|ts)$
exclude: |
(?x)^(
android/libs/.*|
ios/libs/.*|
common/include/godot_cpp/.*|
android/src/main/java/com/google.*|
)$
- id: format-typescript
name: Format Typescript
description: "Format Typescript"
language: node
files: \.(js|jsx|ts|tsx)$
types_or: [text]
entry: prettier --write --ignore-unknown --config .prettierrc
additional_dependencies: ["[email protected]"]