Migrates bashate linting task to pre-commit in order to allow fast
and transparent execution before uploading changes to gerrit.
Other linters can be run as well, including flake8 and ansible-linter.
This also lowers the footprint on developer machines because each
linter/version is stored only once on disk, regardless how many
repositories are using it.
Only action needed for enabling pre-commit as a developer is to
run `pip install pre-commit`, everything else is done transparently
after.
Reviewed: https:/ /review. openstack. org/583984 /git.openstack. org/cgit/ openstack/ tripleo- quickstart- extras/ commit/ ?id=1c6cfa1e466 9d107d76e58b9cf dca3437add8dc6
Committed: https:/
Submitter: Zuul
Branch: master
commit 1c6cfa1e4669d10 7d76e58b9cfdca3 437add8dc6
Author: Sorin Sbarnea <email address hidden>
Date: Thu Jul 19 15:40:32 2018 +0100
Run bashate via pre-commit
Migrates bashate linting task to pre-commit in order to allow fast
and transparent execution before uploading changes to gerrit.
Other linters can be run as well, including flake8 and ansible-linter.
This also lowers the footprint on developer machines because each
linter/version is stored only once on disk, regardless how many
repositories are using it.
Only action needed for enabling pre-commit as a developer is to
run `pip install pre-commit`, everything else is done transparently
after.
Partial-Bug: #1786286 45c542e4f922e89 bc4449247c3
Change-Id: I6ad834bbfbaf76