-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
59 lines (59 loc) · 1.82 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
59 lines (59 loc) · 1.82 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
# Mirrors ITK's .pre-commit-config.yaml style gates for C++ and Python.
# The clang-format rev must track ITK main's pin (the lint CI job
# resolves its version from ITK main at run time).
fail_fast: true
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
args: ['--maxkb=200']
- id: check-ast
- id: check-case-conflict
- id: check-illegal-windows-names
- id: check-json
exclude: "\\.ipynb$"
- id: check-merge-conflict
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: check-shebang-scripts-are-executable
- id: debug-statements
exclude: "^Utilities\\/SphinxExtensions\\/"
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
exclude: "\\.(md5|sha512|cid|svg|vtk|vtp|ipynb)$|^Superbuild\\/"
- id: forbid-new-submodules
- id: mixed-line-ending
exclude: "\\.(sha512|cid|svg|vtk|vtp|ipynb)$"
- id: no-commit-to-branch
args: ['--branch','main','--branch','dashboard','--branch','gh-pages']
- id: trailing-whitespace
exclude: "\\.(sha512|cid|svg|vtk|vtp|ipynb)$"
- repo: https://github.com/BlankSpruce/gersemi
rev: 0.19.3
hooks:
- id: gersemi
args: [ '--config', '.gersemi.config', '-i' ]
files: '.cmake$|CMakeLists.txt'
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.7
hooks:
- id: clang-format
args: ['--style=file']
files: '\.(c|cc|h|cxx|hxx)$'
- repo: https://github.com/psf/black
rev: 25.12.0
hooks:
- id: black
args: ['--target-version', 'py310']
exclude: "^Utilities\\/SphinxExtensions\\/"
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py310-plus]
exclude: "^Utilities\\/SphinxExtensions\\/"