From 9ba457e88033c8a551f73357b47d3630df74d467 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 23:24:59 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.4...v0.8.0) - [github.com/pappasam/toml-sort: v0.24.1 → v0.24.2](https://github.com/pappasam/toml-sort/compare/v0.24.1...v0.24.2) - [github.com/pre-commit/mirrors-clang-format: v19.1.3 → v19.1.4](https://github.com/pre-commit/mirrors-clang-format/compare/v19.1.3...v19.1.4) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3f86b8d..f41cd0d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autoupdate_branch: devel repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.4 + rev: v0.8.0 hooks: - id: ruff args: @@ -14,12 +14,12 @@ repos: hooks: - id: cmake-format - repo: https://github.com/pappasam/toml-sort - rev: v0.24.1 + rev: v0.24.2 hooks: - id: toml-sort-fix exclude: poetry.lock - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.3 + rev: v19.1.4 hooks: - id: clang-format args: From 7714ff30aead2f8cca862d8de797b9efe27fbe41 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Tue, 26 Nov 2024 10:02:47 +0100 Subject: [PATCH 2/3] fix UP031 --- blender/urdf_to_blender.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/blender/urdf_to_blender.py b/blender/urdf_to_blender.py index 2e974f4..62417c3 100755 --- a/blender/urdf_to_blender.py +++ b/blender/urdf_to_blender.py @@ -86,8 +86,7 @@ def updateFrameMessage(): callerframerecord = inspect.stack()[1] info = inspect.getframeinfo(callerframerecord[0]) print( - "Update function %s in script %s:%i" - % (info.function, info.filename, info.lineno) + f"Update function {info.function} in script {info.filename}:{info.lineno}" ) From 5f1534657c1a60dbc7c3d6067579b3a6d3d6848b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 26 Nov 2024 09:02:54 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- blender/urdf_to_blender.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/blender/urdf_to_blender.py b/blender/urdf_to_blender.py index 62417c3..a657742 100755 --- a/blender/urdf_to_blender.py +++ b/blender/urdf_to_blender.py @@ -85,9 +85,7 @@ def resolve_ros_path(path): def updateFrameMessage(): callerframerecord = inspect.stack()[1] info = inspect.getframeinfo(callerframerecord[0]) - print( - f"Update function {info.function} in script {info.filename}:{info.lineno}" - ) + print(f"Update function {info.function} in script {info.filename}:{info.lineno}") class CreateBlenderObject: