From 07d06875a23ee63d24ef1bc6e571e233da34e493 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 29 Aug 2024 21:04:26 +0900 Subject: [PATCH] fix(pre-commit): add flake8-ros (backport #1291) (#1495) fix(pre-commit): add flake8-ros (#1291) * update pre-commit-config * ci(pre-commit): autofix --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit 751ad2b73f14f06984ea3b63ff258fc2b602f572) Co-authored-by: Shigekazu Fukuta <107168699+sfukuta@users.noreply.github.com> --- .pre-commit-config.yaml | 19 ++----------------- common/tier4_debug_tools/package.xml | 2 +- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b74680a99652..278ef30c4964c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,8 +35,9 @@ repos: - id: yamllint - repo: https://github.com/tier4/pre-commit-hooks-ros - rev: v0.6.0 + rev: v0.8.0 hooks: + - id: flake8-ros - id: prettier-xacro - id: prettier-launch-xml - id: prettier-package-xml @@ -65,22 +66,6 @@ repos: - id: black args: [--line-length=100] - - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 - hooks: - - id: flake8 - additional_dependencies: - [ - flake8-blind-except, - flake8-builtins, - flake8-class-newline, - flake8-comprehensions, - flake8-deprecated, - flake8-docstrings, - flake8-import-order, - flake8-quotes, - ] - - repo: https://github.com/pre-commit/mirrors-clang-format rev: v13.0.1 hooks: diff --git a/common/tier4_debug_tools/package.xml b/common/tier4_debug_tools/package.xml index fa447301d36c3..7387ef6bb1e9f 100644 --- a/common/tier4_debug_tools/package.xml +++ b/common/tier4_debug_tools/package.xml @@ -17,8 +17,8 @@ tier4_debug_msgs launch_ros - rclpy python3-rtree + rclpy ament_lint_auto autoware_lint_common