-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
120 lines (111 loc) · 2.93 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
120 lines (111 loc) · 2.93 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
# 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: v23.1.1
hooks:
- id: clang-format
args: ['-fallback-style=none', '-i']
exclude_types: [json]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.3
hooks:
- id: codespell
exclude: \.lock$
exclude_types: [svg]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.38.0
hooks:
- id: check-github-workflows
args: ['--verbose']
- id: check-github-actions
args: ['--verbose']
- id: check-dependabot
args: ['--verbose']
- id: check-renovate
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_flake8
name: ament_flake8
entry: ament_flake8
language: system
files: \.py$
- id: ament_lint_cmake
name: ament_lint_cmake
entry: ament_lint_cmake
language: system
files: CMakeLists\.txt$
- id: ament_pep257
name: ament_pep257
entry: ament_pep257
language: system
files: \.py$
- 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)$