-
Notifications
You must be signed in to change notification settings - Fork 13
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
Pin package for ansible-lint
in pre-commit
#180
Conversation
933a6e6
to
2336d87
Compare
See skeleton-ansible-role#178 for more details. Co-authored-by: Nick <[email protected]>
The line is not only unnecessary, it was commented out to boot!
2336d87
to
1ab9eca
Compare
…lint On its own ansible-lint does not pull in ansible, only ansible-core. Therefore, if an Ansible module lives in ansible instead of ansible-core, the linter will complain that the module is unknown. In these cases it is necessary to add the ansible package itself as an additional dependency, with the same pinning as is done in requirements-test.txt of cisagov/skeleton-ansible-role.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approval intensifies.
We can close this pull request because a new version of the |
🗣 Description
This pull request pins
ansible-core
when runningansible-lint
inpre-commit
. It also adds a comment explaining why the Python packageansible
may sometimes need to be added as an additional dependency for theansible-lint
linter in.pre-commit-config.yaml
.💭 Motivation and context
This is done to match the pinning that was done in cisagov/skeleton-ansible-role#193.
🧪 Testing
All automated tests pass.
✅ Pre-approval checklist