fix pep8 error
Change-Id: I2ffbd131051676a5e28f80a6ea2ccc120362c7a8
This commit is contained in:
parent
ca7b76193b
commit
96614052e8
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@
|
|||||||
.pydevproject
|
.pydevproject
|
||||||
.python-version
|
.python-version
|
||||||
.settings/
|
.settings/
|
||||||
|
.stestr/
|
||||||
.testrepository/
|
.testrepository/
|
||||||
.tox/
|
.tox/
|
||||||
.venv
|
.venv
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
|
|
||||||
|
|
||||||
import six
|
import six
|
||||||
import time
|
|
||||||
|
|
||||||
from ceilometer.compute.virt import inspector as virt_inspector
|
from ceilometer.compute.virt import inspector as virt_inspector
|
||||||
from ceilometer.i18n import _
|
from ceilometer.i18n import _
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
ceilometer
|
||||||
eventlet>=0.17.4
|
eventlet>=0.17.4
|
||||||
oslo.concurrency>=2.3.0 # Apache-2.0
|
oslo.concurrency>=3.29.0 # Apache-2.0
|
||||||
oslo.config>=2.1.0 # Apache-2.0
|
oslo.config>=8.6.0 # Apache-2.0
|
||||||
oslo.i18n>=1.5.0 # Apache-2.0
|
oslo.i18n>=3.15.3 # Apache-2.0
|
||||||
oslo.log>=1.8.0 # Apache-2.0
|
oslo.log>=3.36.0 # Apache-2.0
|
||||||
oslo.service>=0.6.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
|
zVMCloudConnector>=0.3.5 # Apache 2.0 License
|
||||||
|
@ -11,8 +11,11 @@ classifier =
|
|||||||
License :: OSI Approved :: Apache Software License
|
License :: OSI Approved :: Apache Software License
|
||||||
Operating System :: POSIX :: Linux
|
Operating System :: POSIX :: Linux
|
||||||
Programming Language :: Python
|
Programming Language :: Python
|
||||||
Programming Language :: Python :: 2
|
Programming Language :: Python :: Implementation :: CPython
|
||||||
Programming Language :: Python :: 2.7
|
Programming Language :: Python :: 3 :: Only
|
||||||
|
Programming Language :: Python :: 3
|
||||||
|
Programming Language :: Python :: 3.8
|
||||||
|
Programming Language :: Python :: 3.9
|
||||||
|
|
||||||
[files]
|
[files]
|
||||||
packages =
|
packages =
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
hacking<0.11,>=0.10.0
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
coverage>=3.6
|
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||||
discover
|
flake8
|
||||||
fixtures>=1.3.1
|
oslotest>=3.8.0 # Apache-2.0
|
||||||
python-subunit>=0.0.18
|
testscenarios>=0.4 # Apache-2.0/BSD
|
||||||
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
|
testtools>=2.2.0 # MIT
|
||||||
oslosphinx>=2.5.0 # Apache-2.0
|
stestr>=2.0.0 # Apache-2.0
|
||||||
oslotest>=1.10.0 # Apache-2.0
|
testresources>=2.0.1 # Apache-2.0
|
||||||
testrepository>=0.0.18
|
|
||||||
testscenarios>=0.4
|
|
||||||
testtools>=1.4.0
|
|
||||||
mock>=1.2
|
mock>=1.2
|
||||||
|
20
tox.ini
20
tox.ini
@ -1,20 +1,16 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 1.6
|
minversion = 3.18.0
|
||||||
envlist = pep8,py27,py36,py37,py38
|
envlist = pep8,py{38,39}
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
whitelist_externals = *
|
whitelist_externals = *
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
install_command = pip install -U {opts} {packages}
|
|
||||||
setenv =
|
setenv =
|
||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
-egit+https://github.com/openstack/ceilometer@master#egg=ceilometer
|
commands = stestr run --test-path {toxinidir}/ceilometer_zvm/tests {posargs}
|
||||||
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}'
|
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands = flake8
|
commands = flake8
|
||||||
@ -23,12 +19,16 @@ commands = flake8
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
setenv =
|
||||||
|
PYTHON=coverage run --parallel-mode
|
||||||
|
commands =
|
||||||
|
stestr run --test-path {toxinidir}/ceilometer_zvm/tests {posargs}
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E126,E127,E128,E129
|
ignore = E123,E126,E127,E128,E129,W503,W504
|
||||||
exclude = .venv,.git,.tox,dist,doc,*egg,build
|
exclude = .venv,.git,.tox,dist,doc,*egg,build
|
||||||
|
|
||||||
[hacking]
|
[hacking]
|
||||||
import_exceptions = nova.i18n
|
import_exceptions = nova.i18n
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user