fix pep8 error
Change-Id: I2ffbd131051676a5e28f80a6ea2ccc120362c7a8
This commit is contained in:
parent
ca7b76193b
commit
d357a13536
|
@ -4,6 +4,7 @@
|
|||
.pydevproject
|
||||
.python-version
|
||||
.settings/
|
||||
.stestr/
|
||||
.testrepository/
|
||||
.tox/
|
||||
.venv
|
||||
|
@ -14,4 +15,4 @@ ceilometer_zvm.egg-info/
|
|||
dist/
|
||||
doc/build/
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
ChangeLog
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
|
||||
import six
|
||||
import time
|
||||
|
||||
from ceilometer.compute.virt import inspector as virt_inspector
|
||||
from ceilometer.i18n import _
|
||||
|
|
|
@ -4,6 +4,6 @@ oslo.config>=2.1.0 # Apache-2.0
|
|||
oslo.i18n>=1.5.0 # Apache-2.0
|
||||
oslo.log>=1.8.0 # Apache-2.0
|
||||
oslo.service>=0.6.0 # Apache-2.0
|
||||
pbr==2.0.0
|
||||
pbr>=2.0.0
|
||||
six>=1.9.0
|
||||
zVMCloudConnector>=0.3.5 # Apache 2.0 License
|
||||
|
|
|
@ -11,8 +11,11 @@ classifier =
|
|||
License :: OSI Approved :: Apache Software License
|
||||
Operating System :: POSIX :: Linux
|
||||
Programming Language :: Python
|
||||
Programming Language :: Python :: 2
|
||||
Programming Language :: Python :: 2.7
|
||||
Programming Language :: Python :: Implementation :: CPython
|
||||
Programming Language :: Python :: 3 :: Only
|
||||
Programming Language :: Python :: 3
|
||||
Programming Language :: Python :: 3.8
|
||||
Programming Language :: Python :: 3.9
|
||||
|
||||
[files]
|
||||
packages =
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
hacking<0.11,>=0.10.0
|
||||
coverage>=3.6
|
||||
discover
|
||||
fixtures>=1.3.1
|
||||
python-subunit>=0.0.18
|
||||
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
|
||||
oslosphinx>=2.5.0 # Apache-2.0
|
||||
oslotest>=1.10.0 # Apache-2.0
|
||||
testrepository>=0.0.18
|
||||
testscenarios>=0.4
|
||||
testtools>=1.4.0
|
||||
coverage!=4.4,>=4.0 # Apache-2.0
|
||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||
flake8
|
||||
oslotest>=3.8.0 # Apache-2.0
|
||||
testscenarios>=0.4 # Apache-2.0/BSD
|
||||
testtools>=2.2.0 # MIT
|
||||
stestr>=2.0.0 # Apache-2.0
|
||||
testresources>=2.0.1 # Apache-2.0
|
||||
mock>=1.2
|
||||
|
|
14
tox.ini
14
tox.ini
|
@ -1,6 +1,6 @@
|
|||
[tox]
|
||||
minversion = 1.6
|
||||
envlist = pep8,py27,py36,py37,py38
|
||||
minversion = 3.18.0
|
||||
envlist = pep8,py{38,39}
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
|
@ -14,7 +14,7 @@ deps = -r{toxinidir}/requirements.txt
|
|||
-egit+https://github.com/openstack/ceilometer@master#egg=ceilometer
|
||||
commands = /bin/cp -r {toxinidir}/ceilometer_zvm/compute/virt/zvm \
|
||||
{toxinidir}/.tox/{envname}/src/ceilometer/ceilometer/compute/virt/
|
||||
python setup.py testr --slowest --testr-args='{posargs}'
|
||||
stestr run --test-path {toxinidir}/ceilometer_zvm/tests {posargs}
|
||||
|
||||
[testenv:pep8]
|
||||
commands = flake8
|
||||
|
@ -23,10 +23,14 @@ commands = flake8
|
|||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
||||
commands =
|
||||
stestr run {posargs}
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
|
||||
[flake8]
|
||||
ignore = E126,E127,E128,E129
|
||||
ignore = E123,E126,E127,E128,E129,W503,W504
|
||||
exclude = .venv,.git,.tox,dist,doc,*egg,build
|
||||
|
||||
[hacking]
|
||||
|
|
Loading…
Reference in New Issue