-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
109 lines (100 loc) · 2.72 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
109 lines (100 loc) · 2.72 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
# To use:
#
# prek run -a --hook-stage manual
#
# Or:
#
# prek install --prepare-hooks -f # (runs every time you commit in git)
#
# To update this file:
#
# prek autoupdate
#
# See https://prek.j178.dev/
default_stages:
- manual
- pre-commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: check-xml
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.1
hooks:
- id: clang-format
args: ["-fallback-style=none", "-i"]
exclude_types: [json]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
# Ignore camelCase/PascalCase identifiers
args: ["--ignore-regex=\\b[A-Za-z0-9]*[a-z][A-Z][A-Za-z0-9]*\\b"]
exclude_types: [svg]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.0
hooks:
- id: check-github-workflows
args: ["--verbose"]
- id: check-github-actions
args: ["--verbose"]
- id: check-dependabot
args: ["--verbose"]
- repo: local
hooks:
- id: commitlint
name: commitlint
language: system
entry: commitlint --edit
stages: [commit-msg]
- id: prettier-check
name: prettier
language: system
entry: prettier --check .
pass_filenames: false
stages: [pre-commit]
- id: prettier-write
name: prettier
language: system
entry: prettier --write .
pass_filenames: false
stages: [manual]
- repo: local
hooks:
- id: ament_copyright
name: ament_copyright
entry: ament_copyright
language: system
- id: ament_cppcheck
name: ament_cppcheck
entry: env AMENT_CPPCHECK_ALLOW_SLOW_VERSIONS=1 ament_cppcheck
language: system
files: \.(c|cc|cpp|cxx|h|hh|hpp|hxx)$
- id: ament_cpplint
name: ament_cpplint
entry: ament_cpplint
language: system
files: \.(c|cc|cpp|cxx|h|hh|hpp|hxx)$
- id: ament_lint_cmake
name: ament_lint_cmake
entry: ament_lint_cmake
language: system
files: CMakeLists\.txt$
- id: ament_xmllint
name: ament_xmllint
entry: ament_xmllint
language: system
# files: \.(sdf|urdf|xacro|xml)$
# ament_xmllint fails to properly parse package.xml on Nix
files: \.(sdf|urdf|xacro)$