forked from Slicer/Slicer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
56 lines (51 loc) · 1.97 KB
/
.pre-commit-config.yaml
File metadata and controls
56 lines (51 loc) · 1.97 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v6.0.0"
hooks:
- id: check-added-large-files
args: ["--maxkb=1024"]
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
exclude: ^\.clang-format$ # check-yaml do not support multi-document file
- id: debug-statements
exclude: "Base/QTGUI/Testing/Data/Input/qSlicerScriptedLoadableModuleSyntaxErrorTestWidget.py|Base/QTGUI/Testing/Data/Input/qSlicerScriptedLoadableModuleSyntaxErrorTest.py"
- id: end-of-file-fixer
exclude: "\\.(md5|svg|vtk|vtp)$|^Resources\\/[^\\/]+\\.h$|\\/ColorFiles\\/.+\\.txt$|Data\\/Input\\/.+$"
- id: mixed-line-ending
exclude: "\\.(svg|vtk|vtp)$"
- id: trailing-whitespace
exclude: "\\.(svg|vtk|vtp)$"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.0
hooks:
- id: ruff-check
args: ["--fix", "--show-fixes"]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v21.1.0"
hooks:
- id: clang-format
# Explicitly include ".txx" files, which are not recognized as source files
# by the "identify" package used by pre-commit. To work around this,
# we manually specify file matching via the "files" regex and set "types_or"
# to allow formatting of files treated as plain text.
#
# Reference: https://github.com/pre-commit/identify/blob/main/identify/extensions.py
types_or: [file, text]
files: \.(cpp|cxx|h|hpp|txx)$
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
hooks:
- id: pyupgrade
args: [--py312-plus]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
types_or: [yaml]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.33.3"
hooks:
- id: check-dependabot
- id: check-github-workflows