From d1e233d2b80b87536a0e7a6f6fdd67697500b171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20G=C3=BCnther?= Date: Tue, 9 Apr 2024 12:21:26 +0200 Subject: [PATCH] pre-commit: Update hook versions --- .pre-commit-config.yaml | 12 ++++++------ mir_driver/nodes/mir_bridge.py | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3ddaf2cb..597be7bc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: # Standard hooks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -46,12 +46,12 @@ repos: exclude: *excludes - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 24.3.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8.git - rev: 5.0.4 + rev: 7.0.0 hooks: - id: flake8 @@ -62,7 +62,7 @@ repos: args: [--external-sources] - repo: https://github.com/markdownlint/markdownlint - rev: v0.11.0 + rev: v0.13.0 hooks: - id: markdownlint @@ -72,7 +72,7 @@ repos: - id: dockerfilelint - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.3.1 + rev: v1.5.1 hooks: - id: insert-license files: \.py$ @@ -90,7 +90,7 @@ repos: - LICENSE - repo: https://github.com/pycqa/pydocstyle - rev: 6.1.1 + rev: 6.3.0 hooks: - id: pydocstyle args: diff --git a/mir_driver/nodes/mir_bridge.py b/mir_driver/nodes/mir_bridge.py index 0c61a635..384d75f4 100755 --- a/mir_driver/nodes/mir_bridge.py +++ b/mir_driver/nodes/mir_bridge.py @@ -160,7 +160,7 @@ def _prepend_tf_prefix_dict_filter(msg_dict): # filtered_msg_dict = copy.deepcopy(msg_dict) if not isinstance(msg_dict, dict): # can happen during recursion return - for (key, value) in msg_dict.items(): + for key, value in msg_dict.items(): if key == 'header': try: # prepend frame_id @@ -187,7 +187,7 @@ def _remove_tf_prefix_dict_filter(msg_dict): # filtered_msg_dict = copy.deepcopy(msg_dict) if not isinstance(msg_dict, dict): # can happen during recursion return - for (key, value) in msg_dict.items(): + for key, value in msg_dict.items(): if key == 'header': try: # remove frame_id @@ -494,12 +494,12 @@ def get_topics(self): topics.append([topic_name, topic_type, has_publishers, has_subscribers]) print('Publishers:') - for (topic_name, topic_type, has_publishers, has_subscribers) in topics: + for topic_name, topic_type, has_publishers, has_subscribers in topics: if has_publishers: print((' * %s [%s]' % (topic_name, topic_type))) print('\nSubscribers:') - for (topic_name, topic_type, has_publishers, has_subscribers) in topics: + for topic_name, topic_type, has_publishers, has_subscribers in topics: if has_subscribers: print((' * %s [%s]' % (topic_name, topic_type)))