move pep8 zuul job definition in repo
Update the pep8 to latest openstack infra requirements and move the pep8 zuul job definition in repo. Change-Id: Idc727e5232c6b1697e65cbda8b955d9f4f1490d3
This commit is contained in:
parent
e6ce725be3
commit
b07b373992
|
@ -12,17 +12,15 @@
|
|||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import libvirt
|
||||
from tempest.lib.common.utils import data_utils
|
||||
import testtools
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
import libvirt
|
||||
from tempest.api.compute import base
|
||||
from tempest.common import utils
|
||||
from tempest.common import waiters
|
||||
from tempest import config
|
||||
|
||||
from tempest.lib.common.utils import data_utils
|
||||
import testtools
|
||||
|
||||
CONF = config.CONF
|
||||
|
||||
|
|
|
@ -14,12 +14,10 @@
|
|||
# under the License.
|
||||
|
||||
from oslo_concurrency import processutils
|
||||
|
||||
from tempest.api.compute import base
|
||||
from tempest.common.utils.linux import remote_client
|
||||
from tempest import config
|
||||
from tempest.lib.common.utils import data_utils
|
||||
|
||||
import testtools
|
||||
|
||||
CONF = config.CONF
|
||||
|
@ -45,9 +43,9 @@ def get_host_numa_placement(instance, vcpus):
|
|||
|
||||
placement = []
|
||||
for i in range(vcpus):
|
||||
replaced = cgroup.replace('\\', '\\\\') + '/vcpu' + str(i)
|
||||
cpus, _ = processutils.execute('cgget -n -v -r cpuset.cpus %s'
|
||||
% (cgroup.replace('\\', '\\\\') +
|
||||
'/vcpu' + str(i)), shell=True)
|
||||
% (replaced), shell=True)
|
||||
placement.append(cpus.strip())
|
||||
|
||||
return placement
|
||||
|
|
|
@ -1,6 +1 @@
|
|||
pyflakes==0.8.1
|
||||
pep8==1.5.6
|
||||
mccabe==0.2.1
|
||||
flake8==2.1.0
|
||||
hacking>=0.9.2,<0.10
|
||||
sphinx>=1.1.2
|
||||
hacking>=4.0.0,<4.1.0 # Apache-2.0
|
||||
|
|
4
tox.ini
4
tox.ini
|
@ -1,9 +1,10 @@
|
|||
[tox]
|
||||
minversion = 2.0
|
||||
envlist = py34,py27,pep8
|
||||
envlist = py3,pep8
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
basepython=python3
|
||||
usedevelop = True
|
||||
whitelist_externals = bash
|
||||
find
|
||||
|
@ -38,3 +39,4 @@ ignore = E123,E125,E126,E128,E129,E265,H301,H305,H307,H404,H405,H904,H803
|
|||
show-source = True
|
||||
builtins = _
|
||||
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build
|
||||
import-order-style = pep8
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
- project:
|
||||
check:
|
||||
jobs:
|
||||
- openstack-tox-pep8
|
||||
gate:
|
||||
jobs:
|
||||
- openstack-tox-pep8
|
Loading…
Reference in New Issue