Skip to content

Commit 130a7ec

Browse files
authored
Update pre-commit-config (#2805)
1 parent 631e7ba commit 130a7ec

File tree

8 files changed

+22
-20
lines changed

8 files changed

+22
-20
lines changed

.codespell_words

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ brin
88
dof
99
dur
1010
iff
11+
lins
1112
keyserver
1213
nto
1314
ot

.pre-commit-config.yaml

Lines changed: 8 additions & 7 deletions
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.5.0
18+
rev: v5.0.0
1919
hooks:
2020
- id: check-added-large-files
2121
- id: check-case-conflict
@@ -33,7 +33,7 @@ repos:
3333
- id: trailing-whitespace
3434

3535
- repo: https://github.com/psf/black
36-
rev: 23.10.0
36+
rev: 25.1.0
3737
hooks:
3838
- id: black
3939

@@ -47,17 +47,18 @@ repos:
4747
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
4848
args: ['-fallback-style=none', '-i']
4949
- repo: https://github.com/codespell-project/codespell
50-
rev: v2.3.0
50+
rev: v2.4.1
5151
hooks:
5252
- id: codespell
5353
args: ['--write-changes', '--ignore-words=.codespell_words', '--skip="*.eps"']
5454
exclude: CHANGELOG.rst
5555

5656
- repo: https://github.com/cheshirekow/cmake-format-precommit
57-
rev: v0.6.10
57+
rev: v0.6.13
5858
hooks:
5959
- id: cmake-format
6060
- id: cmake-lint
61-
args:
62-
- "--disabled-codes=C0301" # Disable Line too long lint
63-
- "--suppress-decorations"
61+
args: [--line-width 220,
62+
--disabled-codes=C0307,
63+
--suppress-decorations
64+
]

moveit/scripts/create_readme_table.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ def define_urls(target, params):
6262
)
6363
params["url"] = "{base_url}/view/{R}src_u{U}/job/{job}".format(**params)
6464
elif target == "bin":
65-
params[
66-
"job"
67-
] = "{R}bin_u{U}64__{package}__ubuntu_{ubuntu}_amd64__binary".format(**params)
65+
params["job"] = (
66+
"{R}bin_u{U}64__{package}__ubuntu_{ubuntu}_amd64__binary".format(**params)
67+
)
6868
params["url"] = "{base_url}/view/{R}bin_u{U}64/job/{job}".format(**params)
6969

7070

moveit_configs_utils/moveit_configs_utils/substitutions/xacro.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def perform(self, context: LaunchContext) -> Text:
6767
for key, value in self.__mappings.items():
6868
normalized_key = normalize_to_list_of_substitutions(key)
6969
normalized_value = normalize_to_list_of_substitutions(value)
70-
expanded_mappings[
71-
perform_substitutions(context, normalized_key)
72-
] = perform_substitutions(context, normalized_value)
70+
expanded_mappings[perform_substitutions(context, normalized_key)] = (
71+
perform_substitutions(context, normalized_value)
72+
)
7373

7474
return load_xacro(Path(expanded_file_path), mappings=expanded_mappings)

moveit_core/version/version.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ if("${MOVEIT_GIT_NAME}" STREQUAL "HEAD")
1010
execute_process(
1111
COMMAND git describe --contains --all HEAD
1212
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
13-
OUTPUT_VARIABLE MOVEIT_GIT_NAME OUTPUT_STRIP_TRAILING_WHITESPACE
14-
ERROR_QUIET)
13+
OUTPUT_VARIABLE MOVEIT_GIT_NAME
14+
OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
1515
endif()
1616

1717
# Retrieve (short) commit hash
1818
execute_process(
1919
COMMAND git rev-parse --short HEAD
2020
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
21-
OUTPUT_VARIABLE MOVEIT_GIT_COMMIT_HASH OUTPUT_STRIP_TRAILING_WHITESPACE
22-
ERROR_QUIET)
21+
OUTPUT_VARIABLE MOVEIT_GIT_COMMIT_HASH
22+
OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
2323

2424
string(REGEX REPLACE "^([0-9]+)\\..*" "\\1" MOVEIT_VERSION_MAJOR
2525
"${moveit_core_VERSION}")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
""" Teleoperation device implementations. """
1+
"""Teleoperation device implementations."""

moveit_py/moveit/servo_client/devices/ps4_dualshock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# POSSIBILITY OF SUCH DAMAGE.
3232
#
3333
# Author: Peter David Fagan
34-
""" PS4 dualshock teleop device implementation. """
34+
"""PS4 dualshock teleop device implementation."""
3535

3636
import rclpy
3737
from multiprocessing import Process

moveit_py/moveit/servo_client/teleop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# POSSIBILITY OF SUCH DAMAGE.
3232
#
3333
# Author: Peter David Fagan
34-
""" Definition of an abstract base class for device teleoperation. """
34+
"""Definition of an abstract base class for device teleoperation."""
3535

3636
import rclpy
3737

0 commit comments

Comments
 (0)