1
+ # This file is automatically synced from:
2
+ # https://github.com/autowarefoundation/sync-file-templates
3
+ # To make changes, update the source repository and follow the guidelines in its README.
4
+
5
+ # https://pre-commit.ci/#configuration
1
6
ci :
2
- autofix_commit_msg : " ci(pre-commit): autofix"
3
- autoupdate_commit_msg : " ci(pre-commit): autoupdate"
7
+ autofix_commit_msg : " style(pre-commit): autofix"
8
+ # we already have our own daily update mechanism, we set this to quarterly
9
+ autoupdate_schedule : quarterly
10
+ autoupdate_commit_msg : " ci(pre-commit): quarterly autoupdate"
4
11
5
12
repos :
6
13
- repo : https://github.com/pre-commit/pre-commit-hooks
@@ -11,15 +18,15 @@ repos:
11
18
- id : check-toml
12
19
- id : check-xml
13
20
- id : check-yaml
14
- args : [--allow-multiple-documents ]
21
+ args : [--unsafe ]
15
22
- id : detect-private-key
16
23
- id : end-of-file-fixer
17
24
- id : mixed-line-ending
18
25
- id : trailing-whitespace
19
26
args : [--markdown-linebreak-ext=md]
20
27
21
28
- repo : https://github.com/igorshubovych/markdownlint-cli
22
- rev : v0.44 .0
29
+ rev : v0.43 .0
23
30
hooks :
24
31
- id : markdownlint
25
32
args : [-c, .markdownlint.yaml, --fix]
28
35
rev : v4.0.0-alpha.8
29
36
hooks :
30
37
- id : prettier
31
- args : [--no-error-on-unmatched-pattern]
32
38
33
39
- repo : https://github.com/adrienverge/yamllint
34
40
rev : v1.35.1
@@ -38,7 +44,11 @@ repos:
38
44
- repo : https://github.com/tier4/pre-commit-hooks-ros
39
45
rev : v0.10.0
40
46
hooks :
47
+ - id : flake8-ros
48
+ - id : prettier-xacro
49
+ - id : prettier-launch-xml
41
50
- id : prettier-package-xml
51
+ - id : ros-include-guard
42
52
- id : sort-package-xml
43
53
44
54
- repo : https://github.com/shellcheck-py/shellcheck-py
@@ -53,44 +63,47 @@ repos:
53
63
args : [-w, -s, -i=4]
54
64
55
65
- repo : https://github.com/pycqa/isort
56
- rev : 6.0.0
66
+ rev : 5.13.2
57
67
hooks :
58
68
- id : isort
59
69
60
70
- repo : https://github.com/psf/black
61
- rev : 25.1 .0
71
+ rev : 24.10 .0
62
72
hooks :
63
73
- id : black
64
74
args : [--line-length=100]
65
75
66
- - repo : https://github.com/PyCQA/flake8
67
- rev : 7.1.2
68
- hooks :
69
- - id : flake8
70
- additional_dependencies :
71
- [
72
- flake8-blind-except,
73
- flake8-builtins,
74
- flake8-class-newline,
75
- flake8-comprehensions,
76
- flake8-deprecated,
77
- flake8-docstrings,
78
- flake8-import-order,
79
- flake8-quotes,
80
- ]
81
-
82
76
- repo : https://github.com/pre-commit/mirrors-clang-format
83
- rev : v19.1.7
77
+ rev : v19.1.5
84
78
hooks :
85
79
- id : clang-format
80
+ types_or : [c++, c, cuda]
86
81
87
82
- repo : https://github.com/cpplint/cpplint
88
83
rev : 2.0.0
89
84
hooks :
90
85
- id : cpplint
91
- # runtime/arrays uses the name of the variable to determine const-ness.
92
- # This does not play well with our naming conventions
93
- args : [--quiet, '--filter=-runtime/arrays,-build/c++17,-readability/casting']
86
+ args : [--quiet]
94
87
exclude : .cu
95
88
96
- exclude : .svg
89
+ - repo : https://github.com/python-jsonschema/check-jsonschema
90
+ rev : 0.30.0
91
+ hooks :
92
+ - id : check-metaschema
93
+ files : ^.+/schema/.*schema\.json$
94
+
95
+ - repo : local
96
+ hooks :
97
+ - id : prettier-svg
98
+ name : prettier svg
99
+ description : Apply Prettier with plugin-xml to svg.
100
+ entry : prettier --write --list-different --ignore-unknown --print-width 200 --xml-self-closing-space false --xml-whitespace-sensitivity ignore
101
+ language : node
102
+ files : .svg$
103
+ additional_dependencies :
[[email protected] , "@prettier/[email protected] "]
104
+
105
+ - repo : https://github.com/AleksaC/hadolint-py
106
+ rev : v2.12.1b3
107
+ hooks :
108
+ - id : hadolint
109
+ exclude : .svg$
0 commit comments