94e8518f68
Since now linters check are provided by openstack-ansible-tests repo which we're trying to get rid of, this patch implements new job template openstack-ansible-linters-jobs which aims to cover linters checks, that will be runned by gate-check-commit script. It provides next checks: - ansible-lint - ansible syntax-check - bashate - flake8 Role for the check will be selected based on the zuul.project.short_name and passed as a scenario, while provided action is linters. We can't use this check for openstack-ansible repo itself, since we have a lot of linters debt, so we need to fix things inside roles first. Depends-On: https://review.opendev.org/679238 Depends-On: https://review.opendev.org/679105 Change-Id: I24880ab92f89ca02f6b09a63da9f03dd5b230083
17 lines
693 B
Plaintext
17 lines
693 B
Plaintext
# The order of packages is significant, because pip processes them in the order
|
|
# of appearance. Changing the order has an impact on the overall integration
|
|
# process, which may cause wedges in the gate later.
|
|
|
|
# Keep hacking first, it pulls in the right versions of flake8, mccabe and pyflakes
|
|
hacking>=1.1.0,<1.2.0 # Apache-2.0
|
|
bashate>=0.5.1 # Apache-2.0
|
|
coverage!=4.4,>=4.0 # Apache-2.0
|
|
mock>=2.0.0 # BSD
|
|
virtualenv>=14.0.6 # MIT
|
|
# TODO(noonedeadpunk) Upgrade linters versions and drop pycodestyle
|
|
# once we stop doing linters check for the integrated repo with
|
|
# openstack-ansible-tests/test-ansible-lint.sh
|
|
flake8<2.6.0,>=2.5.4 # MIT
|
|
ansible-lint==3.4.21 # MIT
|
|
pycodestyle>=2.5.0,<2.6.0
|