16
16
repos :
17
17
# Standard hooks
18
18
- repo : https://github.com/pre-commit/pre-commit-hooks
19
- rev : v4.4 .0
19
+ rev : v4.5 .0
20
20
hooks :
21
21
- id : check-added-large-files
22
22
- id : check-ast
36
36
37
37
# Python hooks
38
38
- repo : https://github.com/asottile/pyupgrade
39
- rev : v3.4.0
39
+ rev : v3.15.1
40
40
hooks :
41
41
- id : pyupgrade
42
42
args : [--py36-plus]
@@ -48,40 +48,39 @@ repos:
48
48
- id : pydocstyle
49
49
args : ["--ignore=D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404"]
50
50
51
+ - repo : https://github.com/psf/black
52
+ rev : 24.2.0
53
+ hooks :
54
+ - id : black
55
+ args : ["--line-length=99"]
56
+
51
57
- repo : https://github.com/pycqa/flake8
52
- rev : 6 .0.0
58
+ rev : 7 .0.0
53
59
hooks :
54
60
- id : flake8
55
61
args : ["--extend-ignore=E501"]
56
62
57
63
# CPP hooks
58
- - repo : local
64
+ - repo : https://github.com/pre-commit/mirrors-clang-format
65
+ rev : v17.0.6
59
66
hooks :
60
67
- id : clang-format
61
- name : clang-format
62
- description : Format files with ClangFormat.
63
- entry : clang-format-14
64
- language : system
65
- files : \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
66
68
args : ['-fallback-style=none', '-i']
67
69
68
70
- repo : local
69
71
hooks :
70
72
- id : ament_cppcheck
71
73
name : ament_cppcheck
72
74
description : Static code analysis of C/C++ files.
73
- stages : [commit]
74
- entry : ament_cppcheck
75
+ entry : env AMENT_CPPCHECK_ALLOW_SLOW_VERSIONS=1 ament_cppcheck
75
76
language : system
76
77
files : \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
77
78
78
- # Maybe use https://github.com/cpplint/cpplint instead
79
79
- repo : local
80
80
hooks :
81
81
- id : ament_cpplint
82
82
name : ament_cpplint
83
83
description : Static code analysis of C/C++ files.
84
- stages : [commit]
85
84
entry : ament_cpplint
86
85
language : system
87
86
files : \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
93
92
- id : ament_lint_cmake
94
93
name : ament_lint_cmake
95
94
description : Check format of CMakeLists.txt files.
96
- stages : [commit]
97
95
entry : ament_lint_cmake
98
96
language : system
99
97
files : CMakeLists\.txt$
@@ -104,7 +102,6 @@ repos:
104
102
- id : ament_copyright
105
103
name : ament_copyright
106
104
description : Check if copyright notice is available in all files.
107
- stages : [commit]
108
105
entry : ament_copyright
109
106
language : system
110
107
@@ -127,8 +124,18 @@ repos:
127
124
# Spellcheck in comments and docs
128
125
# skipping of *.svg files is not working...
129
126
- repo : https://github.com/codespell-project/codespell
130
- rev : v2.2.4
127
+ rev : v2.2.6
131
128
hooks :
132
129
- id : codespell
133
130
args : ['--write-changes']
134
131
exclude : CHANGELOG\.rst|\.(svg|pyc)$
132
+
133
+ - repo : https://github.com/python-jsonschema/check-jsonschema
134
+ rev : 0.28.0
135
+ hooks :
136
+ - id : check-github-workflows
137
+ args : ["--verbose"]
138
+ - id : check-github-actions
139
+ args : ["--verbose"]
140
+ - id : check-dependabot
141
+ args : ["--verbose"]
0 commit comments