Add .gitreview file
- Fix the target to pep8 instead of flake8 to get tests passing. - Exclude H803 pep8 check. - Correct pep8 error. Change-Id: I90c7abafb6a23e46ff8b0210ff49e37d79730948
This commit is contained in:
parent
4523c3ae55
commit
d72c24a184
|
@ -0,0 +1,4 @@
|
|||
[gerrit]
|
||||
host=review.openstack.org
|
||||
port=29418
|
||||
project=stackforge/swiftsync.git
|
|
@ -209,7 +209,6 @@ class TestSyncer(unittest.TestCase):
|
|||
"""create two empty accounts, Sync only one
|
||||
"""
|
||||
index = {}
|
||||
test_account_name = "account_test"
|
||||
|
||||
# create account
|
||||
self.created = filler.create_swift_account(self.o_ks_client,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
simplejson
|
||||
http://tarballs.openstack.org/swift/swift-master.tar.gz#egg=swift
|
||||
python-swiftclient
|
||||
webob
|
||||
python-dateutil
|
||||
netifaces
|
||||
python-keystoneclient
|
||||
|
|
|
@ -4,7 +4,6 @@ distribute>=0.6.24
|
|||
mox
|
||||
nose
|
||||
nosehtmloutput
|
||||
openstack.nose_plugin
|
||||
testrepository>=0.0.13
|
||||
testtools>=0.9.22
|
||||
unittest2
|
||||
|
|
6
tox.ini
6
tox.ini
|
@ -1,5 +1,5 @@
|
|||
[tox]
|
||||
envlist = py27,flake8
|
||||
envlist = py27,pep8
|
||||
|
||||
[testenv]
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
|
@ -14,7 +14,7 @@ deps = -r{toxinidir}/tools/pip-requires
|
|||
-r{toxinidir}/tools/test-requires
|
||||
commands = python setup.py testr --testr-args="{posargs}"
|
||||
|
||||
[testenv:flake8]
|
||||
[testenv:pep8]
|
||||
sitepackages = False
|
||||
commands = flake8 --show-source swsync bin setup.py tests
|
||||
|
||||
|
@ -28,6 +28,6 @@ commands = python setup.py testr --coverage
|
|||
downloadcache = ~/cache/pip
|
||||
|
||||
[flake8]
|
||||
ignore = E12,E711,E721,E712,H302,H303,H403,H404,F
|
||||
ignore = E12,E711,E721,E712,H302,H303,H403,H404,H803
|
||||
builtins = _
|
||||
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,plugins,tools
|
||||
|
|
Loading…
Reference in New Issue