diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc746104..0ba39e62 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/google/yapf - rev: v0.40.2 + rev: v0.43.0 hooks: - id: yapf args: [-i, --style, .style.yapf] @@ -49,12 +49,12 @@ repos: - id: reorder-python-imports args: [--py37-plus] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.3 + rev: v0.8.1 hooks: - id: ruff args: [--fix, --show-fixes, --exit-non-zero-on-fix] - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.3 + rev: v19.1.4 hooks: - id: clang-format - repo: https://github.com/cpplint/cpplint diff --git a/examples/chatter/py_talker.py b/examples/chatter/py_talker.py index 516647ee..86f9c48a 100644 --- a/examples/chatter/py_talker.py +++ b/examples/chatter/py_talker.py @@ -27,7 +27,7 @@ def __init__(self): def timer_callback(self): msg = String() - msg.data = 'Hello World: %d' % self.i + msg.data = f'Hello World: {self.i}' self.publisher_.publish(msg) self.get_logger().info(f'Publishing: "{msg.data}"') self.i += 1