Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit fe829ce

Browse files
Update precommit config (#298) (#301)
Co-authored-by: Alejandro Hernández Cordero <[email protected]> (cherry picked from commit 105c0ba) Co-authored-by: Christoph Fröhlich <[email protected]>
1 parent 8329e97 commit fe829ce

File tree

3 files changed

+29
-7
lines changed

3 files changed

+29
-7
lines changed
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Auto Update pre-commit
2+
# Update pre-commit config and create PR if changes are detected
3+
# author: Christoph Fröhlich <[email protected]>
4+
5+
on:
6+
workflow_dispatch:
7+
schedule:
8+
- cron: '0 0 1 * *' # Runs at 00:00, on day 1 of the month
9+
10+
jobs:
11+
auto_update_and_create_pr:
12+
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-update-pre-commit.yml@master

.pre-commit-config.yaml

+16-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
repos:
1616
# Standard hooks
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v4.1.0
18+
rev: v4.6.0
1919
hooks:
2020
- id: check-added-large-files
2121
- id: check-ast
@@ -35,7 +35,7 @@ repos:
3535

3636
# Python hooks
3737
- repo: https://github.com/asottile/pyupgrade
38-
rev: v2.31.1
38+
rev: v3.15.2
3939
hooks:
4040
- id: pyupgrade
4141
args: [--py36-plus]
@@ -51,7 +51,7 @@ repos:
5151
args: ["--ignore=D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404"]
5252

5353
- repo: https://github.com/pycqa/flake8
54-
rev: 4.0.1
54+
rev: 7.0.0
5555
hooks:
5656
- id: flake8
5757
args: ["--extend-ignore=E501"]
@@ -112,14 +112,14 @@ repos:
112112

113113
# Docs - RestructuredText hooks
114114
- repo: https://github.com/PyCQA/doc8
115-
rev: 0.10.1
115+
rev: v1.1.1
116116
hooks:
117117
- id: doc8
118118
args: ['--max-line-length=100', '--ignore=D001']
119119
exclude: CHANGELOG\.rst$
120120

121121
- repo: https://github.com/pre-commit/pygrep-hooks
122-
rev: v1.9.0
122+
rev: v1.10.0
123123
hooks:
124124
- id: rst-backticks
125125
exclude: CHANGELOG\.rst$
@@ -129,8 +129,18 @@ repos:
129129
# Spellcheck in comments and docs
130130
# skipping of *.svg files is not working...
131131
- repo: https://github.com/codespell-project/codespell
132-
rev: v2.1.0
132+
rev: v2.2.6
133133
hooks:
134134
- id: codespell
135135
args: ['--write-changes']
136136
exclude: CHANGELOG\.rst|\.(svg|pyc)$
137+
138+
- repo: https://github.com/python-jsonschema/check-jsonschema
139+
rev: 0.28.1
140+
hooks:
141+
- id: check-github-workflows
142+
args: ["--verbose"]
143+
- id: check-github-actions
144+
args: ["--verbose"]
145+
- id: check-dependabot
146+
args: ["--verbose"]

gazebo_ros2_control/src/gazebo_system.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void GazeboSystem::registerJoints(
198198
RCLCPP_INFO_STREAM(
199199
this->nh_->get_logger(),
200200
"Joint '" << joint_name << "'is mimicking joint '" << mimicked_joint <<
201-
"' with mutiplier: " << mimic_joint.multiplier);
201+
"' with multiplier: " << mimic_joint.multiplier);
202202
this->dataPtr->mimic_joints_.push_back(mimic_joint);
203203
suffix = "_mimic";
204204
}

0 commit comments

Comments
 (0)