-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
62 lines (55 loc) · 1.73 KB
/
.pre-commit-config.yaml
File metadata and controls
62 lines (55 loc) · 1.73 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-yaml
exclude: ^\.clang-(format|tidy)$
- id: check-added-large-files
# Config file: .codespellrc
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
files: ^.*\.(cmake|cpp|cppm|hpp|txt|md|mds|json|js|in|yaml|yml|py|toml)$
args: ["--write", "--ignore-words", ".codespellignore" ]
# Clang-format for C++
# This brings in a portable version of clang-format.
# See also: https://github.com/ssciwr/clang-format-wheel
# Config file: .clang-format
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.3
hooks:
- id: clang-format
types_or: [c++, c, json, javascript]
exclude: docs/TODO.json
# CMake linting and formatting
- repo: https://github.com/BlankSpruce/gersemi-pre-commit
rev: 0.27.2
hooks:
- id: gersemi
name: CMake linting
# Markdown linting
# Config file: .markdownlint.yaml
# Commented out to disable this by default. Uncomment to enable markdown linting.
# - repo: https://github.com/igorshubovych/markdownlint-cli
# rev: v0.46.0
# hooks:
# - id: markdownlint
# Config file: pyproject.toml
# first Python sort imports
- repo: https://github.com/pycqa/isort
rev: 8.0.1
hooks:
- id: isort
# Config file: pyproject.toml
# second Python code formatting
- repo: https://github.com/psf/black
rev: 26.3.1
hooks:
- id: black
exclude: 'infra/'