Move lint requirements to dedicated file

These are not needed for unit tests and we want to avoid conflicts when
running with older python versions that we still test against.

We intentionally duplicate ansible and reno as requirements in order to
avoid having to install more items than necessary.

Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
Change-Id: I0ec83c3e4ae38f911b922a3bade65429d91169eb
This commit is contained in:
Dr. Jens Harbott 2022-04-07 11:02:22 +02:00
parent bf30ed621b
commit 4cfaadec59
3 changed files with 9 additions and 10 deletions

8
lint-requirements.txt Normal file
View File

@ -0,0 +1,8 @@
ansible>=4,<6 # GPLv3
ansible-lint>=4.2.0,!=4.3.0,<6.0.0 # MIT
bandit>=1.1.0 # Apache-2.0
bashate>=0.5.1 # Apache-2.0
doc8>=0.6.0 # Apache-2.0
hacking>=3.0.1,<3.1.0 # Apache-2.0
reno>=3.1.0 # Apache-2.0
yamllint>=1.22.0 #GPL3

View File

@ -1,11 +1,3 @@
# linting
ansible-lint>=4.2.0,!=4.3.0,<6.0.0 # MIT
bandit>=1.1.0 # Apache-2.0
bashate>=0.5.1 # Apache-2.0
doc8>=0.6.0 # Apache-2.0
hacking>=3.0.1,<3.1.0 # Apache-2.0
yamllint>=1.22.0 #GPL3
# coverage testing
coverage!=4.4,>=4.0 # Apache-2.0

View File

@ -93,8 +93,7 @@ setenv =
ANSIBLE_FILTER_PLUGINS = {toxinidir}/ansible/filter_plugins
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/doc/requirements.txt
-r{toxinidir}/lint-requirements.txt
allowlist_externals = bash
find
commands =