Use pep8 replace py27

Depends-on: I98d4c3e9924346b826e5267b0b7c6b73f86741aa
Change-Id: Iada900ac58f0cbfd5035a9cc371669dc998e8d80
This commit is contained in:
chenke 2019-05-05 11:30:40 +08:00
parent 58a1a55a16
commit 3f2d3415e4
2 changed files with 10 additions and 9 deletions

View File

@ -3,7 +3,7 @@
- openstack-specs-jobs - openstack-specs-jobs
check: check:
jobs: jobs:
- openstack-tox-py27 - openstack-tox-pep8
gate: gate:
jobs: jobs:
- openstack-tox-py27 - openstack-tox-pep8

15
tox.ini
View File

@ -1,8 +1,6 @@
[tox] [tox]
# Hold back to 1.4, since that's what's in Fedora 20 repos minversion = 2.0
# and we don't need anything newer for watcher-specs tests envlist = docs,pep8
minversion = 1.4
envlist = docs,py27,pep8
skipsdist = True skipsdist = True
[testenv] [testenv]
@ -29,10 +27,13 @@ commands =
[testenv:pep8] [testenv:pep8]
basepython = python3 basepython = python3
deps = -r{toxinidir}/test-requirements.txt deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = commands =
doc8 doc/source/ README.rst find . -type f -name "*.pyc" -delete
flake8 {posargs} stestr run --slowest {posargs}
flake8 {posargs}
[flake8] [flake8]
ignore = E128 ignore = E128