-
Notifications
You must be signed in to change notification settings - Fork 46
/
.pre-commit-config.yaml
31 lines (29 loc) · 1.07 KB
/
.pre-commit-config.yaml
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
# https://pre-commit.ci/ help keep this .pre-commit-config.yaml
# automatically updated, and enforce clean runs on Pull Requests
# (try to automatically fix any code as well). Run against "devel" branch.
ci:
autofix_prs: true
autoupdate_branch: 'devel'
autoupdate_schedule: 'weekly'
skip: []
submodules: false
repos:
## Some pre-commit out-of-the-box hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
hooks:
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
# Remove trailing whitespace in MATLAB code, excluding contributed code.
# NOTE: One could conceivably also remove trailing whitespace in XML & XSL
# files, but this would modify cluster XML & XSL files for which it is not
# known whether this is acceptable or not.
- id: trailing-whitespace
files: '.*\.(m|txt|TXT|json)$'
exclude: 'contrib/'
- id: trailing-whitespace
files: '.*\.(xml|xsl)$'
exclude: 'mission/cluster/caa/'