Skip to content
Commit 3d4affcb authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

Faster pre-commit by running ansible-lint only when necessary.

This patch disables ansible-lint `always_run` flag, as this was
making patches that did not change any YAML file take longer in
the pre-commit step, as ansible-lint was executed with no parameter,
thus, searching and evaluating all YAML files in the repository.

With this change, if no YAML file is modified, ansible-lint is skipped.
parent eba38e30
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment