-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
51 lines (51 loc) · 1.64 KB
/
.pre-commit-config.yaml
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
41
42
43
44
45
46
47
48
49
50
51
---
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
hooks:
- id: clang-format
args: [--verbose]
types_or: [c, c++, java]
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- repo: https://github.com/lyz-code/yamlfix/
rev: 1.17.0
hooks:
- id: yamlfix
# Exclude conda's meta.yaml because
# - It crashes with jinja2 definitions (ex. "{% my_var = 1 %}")
# - It doesn't support the preprocessing selectors (ex. "[not win]")
# Exclude pack-debian.yml because it doesn't support quoted strings in arrays
exclude: (packaging/conda/meta.yaml|workflows/pack-debian.yml)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: pretty-format-json
args: [--autofix, --no-ensure-ascii, --no-sort-keys]
exclude: test/LearningTest/
- id: trailing-whitespace
types_or: [c, c++, java, python, markdown]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.6
hooks:
- id: check-github-workflows
- id: check-github-actions
- repo: local
hooks:
- id: update-copyright
name: update-copyright
entry: python scripts/update-copyright.py
language: system
types_or: [c, c++, java, python]
- id: check-encoding
name: check-encoding
entry: python scripts/check-encoding.py
language: system
types_or: [c, c++]