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

Changes to make ament_flake8 work with v6+ #459

Merged
merged 3 commits into from
Dec 6, 2023
Merged

Conversation

mjcarroll
Copy link
Contributor

parse_preliminary_options_and_args and parse_preliminary_options have both been removed in favor of parse_args in this commit: PyCQA/flake8@0d667a7

(No corresponding PR as far as I can tell).

This is the minimal set of changes to get build/test passing on flake8 v6

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
@mjcarroll mjcarroll self-assigned this Nov 8, 2023
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
@abrzozowski
Copy link

Hi @mjcarroll, I hope the dependency of ament_flake8 on flake8 will be updated soon.
What do you think about explicitly defining which version of flake8 is supported by ament_flake8 in setup.py (ament_flake8/setup.py)?

@clalancette clalancette self-assigned this Nov 30, 2023
@clalancette
Copy link
Contributor

@tylerjw To take a look as well.

ament_flake8/ament_flake8/main.py Outdated Show resolved Hide resolved
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
@clalancette
Copy link
Contributor

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@clalancette clalancette merged commit fc02432 into rolling Dec 6, 2023
3 checks passed
@clalancette clalancette deleted the mjcarroll/flake8_6 branch December 6, 2023 19:55
@abrzozowski
Copy link

@clalancette Thanks for implementing these changes. Are we planning to add this change to other versions? I'm most concerned about the Humble version.

@clalancette
Copy link
Contributor

@Mergifyio backport iron humble

Copy link

mergify bot commented Dec 20, 2023

backport iron humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Dec 20, 2023
* Changes to make ament_flake8 work with v6+

* Correct make_file_checker_manager call

* Fix compatibility with flake8 5.

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
(cherry picked from commit fc02432)

# Conflicts:
#	ament_flake8/ament_flake8/main.py
mergify bot pushed a commit that referenced this pull request Dec 20, 2023
* Changes to make ament_flake8 work with v6+

* Correct make_file_checker_manager call

* Fix compatibility with flake8 5.

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
(cherry picked from commit fc02432)
clalancette pushed a commit that referenced this pull request Dec 21, 2023
* Changes to make ament_flake8 work with v6+

* Correct make_file_checker_manager call

* Fix compatibility with flake8 5.

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
(cherry picked from commit fc02432)

Co-authored-by: Michael Carroll <mjcarroll@intrinsic.ai>
@clalancette
Copy link
Contributor

@Mergifyio backport iron

Copy link

mergify bot commented Dec 21, 2023

backport iron

✅ Backports have been created

clalancette pushed a commit that referenced this pull request Dec 21, 2023
* Changes to make ament_flake8 work with v6+

* Correct make_file_checker_manager call

* Fix compatibility with flake8 5.

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
(cherry picked from commit fc02432)
clalancette pushed a commit that referenced this pull request Dec 21, 2023
* Changes to make ament_flake8 work with v6+

* Correct make_file_checker_manager call

* Fix compatibility with flake8 5.

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
(cherry picked from commit fc02432)

Co-authored-by: Michael Carroll <mjcarroll@intrinsic.ai>
wuisky pushed a commit to wuisky/ament_lint that referenced this pull request Feb 7, 2024
* Changes to make ament_flake8 work with v6+

* Correct make_file_checker_manager call

* Fix compatibility with flake8 5.

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Signed-off-by: WU MENGHUNG <wu.menghung@jp.panasonic.com>
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.

None yet

4 participants