@@ -71,8 +71,10 @@ repos:
7171 description : Static code analysis of C/C++ files.
7272 stages : [pre-commit]
7373 entry : env AMENT_CPPCHECK_ALLOW_SLOW_VERSIONS=1 ament_cppcheck
74- language : system
74+ language : python
7575 files : \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
76+ additional_dependencies :
77+ - " ament_cppcheck @ git+https://github.com/ament/ament_lint.git@rolling#subdirectory=ament_cppcheck"
7678
7779 # Maybe use https://github.com/cpplint/cpplint instead
7880 - repo : local
@@ -82,9 +84,11 @@ repos:
8284 description : Static code analysis of C/C++ files.
8385 stages : [pre-commit]
8486 entry : ament_cpplint
85- language : system
87+ language : python
8688 files : \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
8789 args : ["--linelength=120"]
90+ additional_dependencies :
91+ - " ament_cpplint @ git+https://github.com/ament/ament_lint.git@rolling#subdirectory=ament_cpplint"
8892
8993 - repo : https://github.com/pre-commit/mirrors-clang-format
9094 rev : ' v22.1.0'
@@ -99,8 +103,10 @@ repos:
99103 description : Check format of CMakeLists.txt files.
100104 stages : [pre-commit]
101105 entry : ament_lint_cmake
102- language : system
106+ language : python
103107 files : CMakeLists.txt$
108+ additional_dependencies :
109+ - " ament_lint_cmake @ git+https://github.com/ament/ament_lint.git@rolling#subdirectory=ament_lint_cmake"
104110
105111 # Copyright
106112 - repo : local
@@ -110,8 +116,10 @@ repos:
110116 description : Check if copyright notice is available in all files.
111117 stages : [pre-commit]
112118 entry : ament_copyright
113- language : system
119+ language : python
114120 args : ['--exclude', 'ur_robot_driver/doc/conf.py', 'ur_calibration/doc/conf.py']
121+ additional_dependencies :
122+ - " ament_copyright @ git+https://github.com/ament/ament_lint.git@rolling#subdirectory=ament_copyright"
115123
116124 # Docs - RestructuredText hooks
117125 - repo : https://github.com/PyCQA/doc8
0 commit comments