Skip to content

Commit c04a16f

Browse files
mergify[bot]github-actions[bot]christophfroehlich
authored
Bump version of pre-commit hooks (backport #1556) (#1557)
* Bump version of pre-commit hooks (#1556) * Bump version of pre-commit hooks * Fix codespell and satisfy linter --------- Co-authored-by: christophfroehlich <[email protected]> Co-authored-by: Christoph Froehlich <[email protected]> (cherry picked from commit 765241e) * Fix codespell --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Christoph Froehlich <[email protected]>
1 parent c820eec commit c04a16f

File tree

7 files changed

+17
-13
lines changed

7 files changed

+17
-13
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ repos:
6262

6363
# CPP hooks
6464
- repo: https://github.com/pre-commit/mirrors-clang-format
65-
rev: v18.1.4
65+
rev: v18.1.5
6666
hooks:
6767
- id: clang-format
6868
args: ['-fallback-style=none', '-i']
@@ -125,14 +125,14 @@ repos:
125125
# Spellcheck in comments and docs
126126
# skipping of *.svg files is not working...
127127
- repo: https://github.com/codespell-project/codespell
128-
rev: v2.2.6
128+
rev: v2.3.0
129129
hooks:
130130
- id: codespell
131131
args: ['--write-changes', '--uri-ignore-words-list=ist', '-L manuel']
132132
exclude: CHANGELOG\.rst|\.(svg|pyc|drawio)$
133133

134134
- repo: https://github.com/python-jsonschema/check-jsonschema
135-
rev: 0.28.2
135+
rev: 0.28.4
136136
hooks:
137137
- id: check-github-workflows
138138
args: ["--verbose"]

controller_manager/src/controller_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2495,7 +2495,7 @@ bool ControllerManager::controller_sorting(
24952495
}
24962496

24972497
// If the ctrl_a's state interface is the one exported by the ctrl_b then ctrl_b should be
2498-
// infront of ctrl_a
2498+
// in front of ctrl_a
24992499
// TODO(saikishor): deal with the state interface chaining in the sorting algorithm
25002500
auto state_it = std::find_if(
25012501
state_itfs.begin(), state_itfs.end(),

controller_manager/test/test_spawner_unspawner.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ TEST_F(TestLoadController, unload_on_kill)
233233
// Launch spawner with unload on kill
234234
// timeout command will kill it after the specified time with signal SIGINT
235235
std::stringstream ss;
236-
ss << "timeout --signal=INT 5 " << "ros2 run controller_manager spawner "
236+
ss << "timeout --signal=INT 5 "
237+
<< "ros2 run controller_manager spawner "
237238
<< "ctrl_3 -c test_controller_manager -t "
238239
<< std::string(test_controller::TEST_CONTROLLER_CLASS_NAME) << " --unload-on-kill";
239240

hardware_interface/include/hardware_interface/actuator_interface.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class ActuatorInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNod
131131
* \note All starting and stopping interface keys are passed to all components, so the function
132132
* should return return_type::OK by default when given interface keys not relevant for this
133133
* component. \param[in] start_interfaces vector of string identifiers for the command interfaces
134-
* starting. \param[in] stop_interfaces vector of string identifiers for the command interfacs
134+
* starting. \param[in] stop_interfaces vector of string identifiers for the command interfaces
135135
* stopping. \return return_type::OK if the new command interface combination can be prepared, or
136136
* if the interface key is not relevant to this system. Returns return_type::ERROR otherwise.
137137
*/
@@ -150,7 +150,7 @@ class ActuatorInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNod
150150
* \note All starting and stopping interface keys are passed to all components, so the function
151151
* should return return_type::OK by default when given interface keys not relevant for this
152152
* component. \param[in] start_interfaces vector of string identifiers for the command interfaces
153-
* starting. \param[in] stop_interfaces vector of string identifiers for the command interfacs
153+
* starting. \param[in] stop_interfaces vector of string identifiers for the command interfaces
154154
* stopping. \return return_type::OK if the new command interface combination can be switched to,
155155
* or if the interface key is not relevant to this system. Returns return_type::ERROR otherwise.
156156
*/

hardware_interface/include/hardware_interface/resource_manager.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ class HARDWARE_INTERFACE_PUBLIC ResourceManager
346346
* \note it is assumed that `prepare_command_mode_switch` is called just before this method
347347
* with the same input arguments.
348348
* \param[in] start_interfaces vector of string identifiers for the command interfaces starting.
349-
* \param[in] stop_interfaces vector of string identifiers for the command interfacs stopping.
349+
* \param[in] stop_interfaces vector of string identifiers for the command interfaces stopping.
350350
* \return true if switch is performed, false if a component rejects switching.
351351
*/
352352
bool perform_command_mode_switch(

hardware_interface/include/hardware_interface/system_interface.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class SystemInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNodeI
132132
* \note All starting and stopping interface keys are passed to all components, so the function
133133
* should return return_type::OK by default when given interface keys not relevant for this
134134
* component. \param[in] start_interfaces vector of string identifiers for the command interfaces
135-
* starting. \param[in] stop_interfaces vector of string identifiers for the command interfacs
135+
* starting. \param[in] stop_interfaces vector of string identifiers for the command interfaces
136136
* stopping. \return return_type::OK if the new command interface combination can be prepared, or
137137
* if the interface key is not relevant to this system. Returns return_type::ERROR otherwise.
138138
*/
@@ -151,7 +151,7 @@ class SystemInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNodeI
151151
* \note All starting and stopping interface keys are passed to all components, so the function
152152
* should return return_type::OK by default when given interface keys not relevant for this
153153
* component. \param[in] start_interfaces vector of string identifiers for the command interfaces
154-
* starting. \param[in] stop_interfaces vector of string identifiers for the command interfacs
154+
* starting. \param[in] stop_interfaces vector of string identifiers for the command interfaces
155155
* stopping. \return return_type::OK if the new command interface combination can be switched to,
156156
* or if the interface key is not relevant to this system. Returns return_type::ERROR otherwise.
157157
*/

joint_limits/include/joint_limits/joint_limits.hpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,14 @@ struct SoftJointLimits
122122
{
123123
std::stringstream ss_output;
124124

125-
ss_output << " soft position limits: " << "[" << min_position << ", " << max_position << "]\n";
125+
ss_output << " soft position limits: "
126+
<< "[" << min_position << ", " << max_position << "]\n";
126127

127-
ss_output << " k-position: " << "[" << k_position << "]\n";
128+
ss_output << " k-position: "
129+
<< "[" << k_position << "]\n";
128130

129-
ss_output << " k-velocity: " << "[" << k_velocity << "]\n";
131+
ss_output << " k-velocity: "
132+
<< "[" << k_velocity << "]\n";
130133

131134
return ss_output.str();
132135
}

0 commit comments

Comments
 (0)