-
Notifications
You must be signed in to change notification settings - Fork 710
Add line method to Task class #4554
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Partial: #4548
Qalthos
approved these changes
Mar 18, 2025
cavcrosby
pushed a commit
to cavcrosby/homelab-cm
that referenced
this pull request
Oct 11, 2025
The ruff pre-commit hook has been updated to the ruff-check hook, as the former is now just an alias for the latter. The GitHub pull request, astral-sh/ruff-pre-commit#124, discusses these changes. The spacing underneath many lines within the code.md and infrastructure.md Markdown files has changed due to Prettier's pre-commit hook formatting them. Also, many link texts have changed to satisfy markdownlint's new MD059 rule (link text should be descriptive). The use_keywords_order_plays.yml playbook has changed to resolve ansible-lint name[unique] violations. Many role variables have been changed to resolve ansible-lint var-naming[no-role-prefix] violations. Passing the line number for tasks and plays (via 'data') as an argument to the create_matcherror method has changed due to how this attribute is to be accessed in relation to future versions of the ansible-core package (>= 2.19). This conclusion has come from reading ansible/ansible-lint#4554 and ansible/ansible-lint#4564. A version_changed attribute has been added to all rules to suppress a warning now generated from ansible-lint that complains when this attribute is missing. This behavior was introduced as of this commit: ansible/ansible-lint#4431. The value for this attribute models the one in the pyproject.toml file, in that it is not intended to hold much significance. This is primarily because I see little value in updating this attribute over time for internal rules. The _get_leaf_items method's type hint has changed from the union type 'list[Any] | dict[Any, Any]' to 'list[Any] | Mapping[Any, Any]' because the parent class type of ansiblelint.utils.Task has changed to be Mapping[str, Any]. The AnsibleUnicodeItems type alias now uses the 'type' keyword instead of TypeAlias, as this was recommended per ruff's non-pep695-type-alias rule.
cavcrosby
pushed a commit
to cavcrosby/homelab-cm
that referenced
this pull request
Oct 18, 2025
The ruff pre-commit hook has been updated to the ruff-check hook, as the former is now just an alias for the latter. The GitHub pull request, astral-sh/ruff-pre-commit#124, discusses these changes. The spacing underneath many lines within the code.md and infrastructure.md Markdown files has changed due to Prettier's pre-commit hook formatting them. Also, many link texts have changed to satisfy markdownlint's new MD059 rule (link text should be descriptive). The use_keywords_order_plays.yml playbook has changed to resolve ansible-lint name[unique] violations. Many role variables have been changed to resolve ansible-lint var-naming[no-role-prefix] violations. Passing the line number for tasks and plays (via 'data') as an argument to the create_matcherror method has changed due to how this attribute is to be accessed in relation to future versions of the ansible-core package (>= 2.19). This conclusion has come from reading ansible/ansible-lint#4554 and ansible/ansible-lint#4564. A version_changed attribute has been added to all rules to suppress a warning now generated from ansible-lint that complains when this attribute is missing. This behavior was introduced as of this commit: ansible/ansible-lint#4431. The value for this attribute models the one in the pyproject.toml file, in that it is not intended to hold much significance. This is primarily because I see little value in updating this attribute over time for internal rules. The _get_leaf_items method's type hint has changed from the union type 'list[Any] | dict[Any, Any]' to 'list[Any] | Mapping[Any, Any]' because the parent class type of ansiblelint.utils.Task has changed to be Mapping[str, Any]. The AnsibleUnicodeItems type alias now uses the 'type' keyword instead of TypeAlias, as this was recommended per ruff's non-pep695-type-alias rule.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Partial: #4548
Partial: AAP-41586