-
-
Notifications
You must be signed in to change notification settings - Fork 436
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
134 lines (134 loc) · 3.83 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
134 lines (134 loc) · 3.83 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
ci:
skip: [flake8]
default_language_version:
node: lts
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: |
(?x)^(
configure$|
.*\.md$|
.*\.ascii$|
.*\.asc$|
.*\.ref$|
raster3d/r3.null/testsuite/data/test_volume_.*|
mswindows/.*|
.*\.po$|
.*\.ps$|
.*\.svg$|
python/grass/temporal/ply/|
python/libgrass_interface_generator/ctypesgen/|
lib/fonts/fonts/.*
)
- id: end-of-file-fixer
exclude: |
(?x)^(
configure$|
.*\.ascii$|
.*\.asc$|
.*\.ref$|
python/grass/pygrass/raster/testsuite/data/geology_cats|
mswindows/.*|
.*\.po$|
.*\.ps$|
.*\.svg$|
python/grass/temporal/ply/|
python/libgrass_interface_generator/ctypesgen/|
lib/fonts/fonts/.*
)
- id: check-case-conflict
# - id: check-executables-have-shebangs # Nice to have once fixes applied
- id: check-json
- id: check-merge-conflict
# - id: check-shebang-scripts-are-executable # Nice to have once fixes applied
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: destroyed-symlinks
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.17
hooks:
# Run the linter.
- id: ruff-check
args: [--fix, --preview]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.48.0
hooks:
- id: markdownlint-fix
- repo: https://github.com/BlankSpruce/gersemi-pre-commit
rev: 0.27.7
hooks:
- id: gersemi
args:
- "--in-place"
- "--safe"
- "--definitions"
- "cmake/"
- "--warn-about-unknown-commands" # Need an argument/flag after the --definitions list
exclude: |
(?x)^(
include\/config\.h\.cmake\.in
)$
- repo: https://github.com/pycqa/flake8
rev: 7.3.0
hooks:
- id: flake8
exclude: |
(?x)^(
python/grass/temporal/ply/|
python/libgrass_interface_generator/|
.*/testsuite/.*
)
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.5
hooks:
- id: clang-format
types_or: [c, c++, javascript, json, objective-c]
exclude: |
(?x)^(
man/jquery.fixedheadertable.min.js$|
.*\.ipynb$
)
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.38.0
hooks:
- id: yamllint
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.27.0
hooks:
- id: zizmor
args:
- "--fix"
# https://github.com/zizmorcore/zizmor-pre-commit/blob/120fe9ac3c965ab7decf67e8b9ca24b274230eed/.pre-commit-hooks.yaml#L10
- "--no-progress"
- repo: https://github.com/editorconfig-checker/editorconfig-checker
rev: v3.6.1
hooks:
- id: editorconfig-checker
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
# TODO: Remove these exclusions, they are just not fixed completely yet, nor ignored
exclude_types:
- c
- c++
- csv
- html
- markdown
- python
- tex
- xml