Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pre-commit): add flake8-ros #1291

Merged
merged 2 commits into from
May 14, 2024
Merged

fix(pre-commit): add flake8-ros #1291

merged 2 commits into from
May 14, 2024

Conversation

sfukuta
Copy link

@sfukuta sfukuta commented May 13, 2024

Description

pre-commit.ciがflake8が、failする問題を解決するPRとなります。

falke8のバージョンが、v4.0.1の場合に以下のクラッシュログが出力されています。
https://results.pre-commit.ci/run/github/438106587/1715588946.TJlGL3TmRU2aARzW8KpB2Q

  • 該当バージョンにて、クラッシュする問題は、flake8のバージョンが古い事が問題と指摘されていました。
  • autoware_launch.x1.eveでは、pre-commit.ciが成功しており、flakeのバージョンはv6.0.0になっています

autoware.universeのv4.0.1のため、autoware_launch.x1.eveよりバージョンが古いため、
flakeのバージョンが古いことが原因と判断しています。

対策方針:

  • flake8のバージョンを、autoware_launch.x1.eveと同じv6.0.0に更新します。

対策方法:
※以下の対策は、autoware_launch.x1.eveと同一で、実績のある実装となります。

1.flake8のv6.0.0が利用するための修正

2.不要なflake8の既存実装を削除

影響のあるCI

全てフォーマッターにあたるため更新にようる実装への影響はない。

  • flake8-ros
  • prettier-xacro
  • prettier-launch-xml
  • prettier-package-xml
  • sort-package-xml
  • ros-include-guard

Tests performed

pre-commit.ciがpassする事を確認済み
https://results.pre-commit.ci/run/github/438106587/1715598146.hX5oIshYRT2lKSQdPEDIkA

Effects on system behavior

特にありません

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@sfukuta sfukuta marked this pull request as draft May 13, 2024 11:00
@sfukuta sfukuta changed the title update pre-commit-config fix(pre-commit): add flake8-ros May 13, 2024
@sfukuta sfukuta requested review from yn-mrse and asa-naki May 13, 2024 11:31
@sfukuta sfukuta marked this pull request as ready for review May 13, 2024 11:38
Copy link

@asa-naki asa-naki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

precommit.ciがsuccessしていることが確認できたので、approveします。

@sfukuta sfukuta merged commit 751ad2b into beta/v0.3.18.1 May 14, 2024
15 of 17 checks passed
@sfukuta sfukuta deleted the fix/ci/flake8 branch May 14, 2024 02:15
asa-naki pushed a commit that referenced this pull request Aug 27, 2024
* update pre-commit-config

* ci(pre-commit): autofix

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@asa-naki
Copy link

@Mergifyio backport beta/v0.3.17.1

Copy link

mergify bot commented Aug 29, 2024

backport beta/v0.3.17.1

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Aug 29, 2024
* 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 751ad2b)
asa-naki pushed a commit that referenced this pull request Aug 29, 2024
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 751ad2b)

Co-authored-by: Shigekazu Fukuta <[email protected]>
@asa-naki
Copy link

@Mergifyio backport beta/v0.3.18.2

Copy link

mergify bot commented Aug 29, 2024

backport beta/v0.3.18.2

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Aug 29, 2024
* 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 751ad2b)
asa-naki pushed a commit that referenced this pull request Aug 29, 2024
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 751ad2b)

Co-authored-by: Shigekazu Fukuta <[email protected]>
@asa-naki
Copy link

@Mergifyio backport beta/v0.3.16.1

Copy link

mergify bot commented Aug 29, 2024

backport beta/v0.3.16.1

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Aug 29, 2024
* 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 751ad2b)
asa-naki pushed a commit that referenced this pull request Aug 29, 2024
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 751ad2b)

Co-authored-by: Shigekazu Fukuta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants