Reconfigure tox.ini

Update minversion of tox to 3.9.0 to support inline comments [1]

Remove test-requirements and move pep8 requirements to tox.ini

[1] https://tox.readthedocs.io/en/latest/changelog.html#v3-9-0-2019-04-17

Change-Id: I5875b1ab383fef4bc49432e678e38941a7f5763e
This commit is contained in:
Riccardo Pittau 2021-01-23 18:51:05 +01:00
parent 5537564121
commit 55972ab6fb
3 changed files with 6 additions and 13 deletions

View File

@ -1,10 +0,0 @@
# 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.
# pep8
hacking>=3.1.0,<4.0.0 # Apache-2.0
flake8-import-order>=0.17.1 # LGPLv3
# documentation
doc8>=0.6.0 # Apache-2.0
pycodestyle>=2.0.0,<2.7.0 # MIT

View File

@ -1,5 +1,5 @@
[tox]
minversion = 3.2.1
minversion = 3.9.0
envlist = pep8
skipsdist = True
ignore_basepython_conflict = true
@ -12,9 +12,13 @@ setenv =
PYTHONWARNINGS=default::DeprecationWarning
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
[testenv:pep8]
deps =
hacking>=3.1.0,<4.0.0 # Apache-2.0
flake8-import-order>=0.17.1 # LGPLv3
doc8>=0.6.0 # Apache-2.0
pycodestyle>=2.0.0,<2.7.0 # MIT
commands =
flake8 ironic_python_agent_builder
doc8 doc/source README.rst CONTRIBUTING.rst

View File

@ -64,7 +64,6 @@
- ^doc/.*$
- ^releasenotes/.*$
- ^setup.cfg$
- ^test-requirements.txt$
- ^tools/.*$
- ^tox.ini$
vars: