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

Upgrade ansible-lint to 6.20.1 #19

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

TamiTakamiya
Copy link
Contributor

For AAP-16653.

Since this change in this version of ansible-lint changed a name of a method that was used in Content Parser (well, we should not have used it because the method name started with _...), we need to make a small change in our code.

@@ -78,7 +78,7 @@ repos:
additional_dependencies:
- pytest
- tox
- ansible-lint
- ansible-lint>=6.20.1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Though I did not want to add a version number here, pylint failed in my environment without this change.

@@ -49,7 +49,7 @@ def ansiblelint_main(argv: list[str] | None = None) -> LintResult:

# pylint: disable=import-outside-toplevel
from ansiblelint.rules import RulesCollection
from ansiblelint.runner import _get_matches
from ansiblelint.runner import get_matches
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the method we are using.

@TamiTakamiya TamiTakamiya marked this pull request as ready for review September 29, 2023 15:35
Copy link

@justjais justjais left a comment

Choose a reason for hiding this comment

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

LGTM

@TamiTakamiya TamiTakamiya merged commit 1e120a5 into main Sep 29, 2023
1 check passed
@TamiTakamiya TamiTakamiya deleted the ttakamiy/AAP-16653/update-ansible-lint-to-6.20.1 branch September 29, 2023 17:41
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