Skip to content

Commit

Permalink
pre-commit: Update hook versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mintar committed Apr 9, 2024
1 parent c7573b8 commit d1e233d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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$
Expand All @@ -90,7 +90,7 @@ repos:
- LICENSE

- repo: https://github.com/pycqa/pydocstyle
rev: 6.1.1
rev: 6.3.0
hooks:
- id: pydocstyle
args:
Expand Down
8 changes: 4 additions & 4 deletions mir_driver/nodes/mir_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)))

Expand Down

0 comments on commit d1e233d

Please sign in to comment.