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] [tox]
minversion = 3.2.1 minversion = 3.9.0
envlist = pep8 envlist = pep8
skipsdist = True skipsdist = True
ignore_basepython_conflict = true ignore_basepython_conflict = true
@ -12,9 +12,13 @@ setenv =
PYTHONWARNINGS=default::DeprecationWarning PYTHONWARNINGS=default::DeprecationWarning
deps = deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
[testenv:pep8] [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 = commands =
flake8 ironic_python_agent_builder flake8 ironic_python_agent_builder
doc8 doc/source README.rst CONTRIBUTING.rst doc8 doc/source README.rst CONTRIBUTING.rst

View File

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