-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (46 loc) · 1.47 KB
/
.pre-commit-config.yaml
File metadata and controls
50 lines (46 loc) · 1.47 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
# 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: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: \.svg$
- id: check-ast
- id: check-xml
- id: check-yaml
- id: check-json
# devcontainer.json contains comments
exclude: .devcontainer/devcontainer\.json
- id: check-toml
- id: check-added-large-files
- id: pretty-format-json
# black has its own mind of formatting Jupyter notebooks
exclude: \.ipynb$|^.devcontainer/devcontainer\.json$|package-lock\.json$
args:
- --no-sort-keys
- --autofix
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v17.0.6"
hooks:
- id: clang-format
files: \.(c|cpp|h|hpp)(\.in)?$
args: []
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "2.7.3"
hooks:
- id: editorconfig-checker
alias: ec
args: [-disable-indent-size]
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
- repo: https://github.com/psf/black-pre-commit-mirror
rev: "25.11.0"
hooks:
- id: black
- id: black-jupyter
- repo: https://github.com/markdownlint/markdownlint
rev: "v0.13.0"
hooks:
- id: markdownlint
args: [-r, "~MD013,~MD033,~MD024"]