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
4
.gitreview
Normal file
4
.gitreview
Normal file
@ -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
|
"""create two empty accounts, Sync only one
|
||||||
"""
|
"""
|
||||||
index = {}
|
index = {}
|
||||||
test_account_name = "account_test"
|
|
||||||
|
|
||||||
# create account
|
# create account
|
||||||
self.created = filler.create_swift_account(self.o_ks_client,
|
self.created = filler.create_swift_account(self.o_ks_client,
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
simplejson
|
simplejson
|
||||||
http://tarballs.openstack.org/swift/swift-master.tar.gz#egg=swift
|
http://tarballs.openstack.org/swift/swift-master.tar.gz#egg=swift
|
||||||
python-swiftclient
|
python-swiftclient
|
||||||
webob
|
|
||||||
python-dateutil
|
python-dateutil
|
||||||
netifaces
|
netifaces
|
||||||
python-keystoneclient
|
python-keystoneclient
|
||||||
|
@ -4,7 +4,6 @@ distribute>=0.6.24
|
|||||||
mox
|
mox
|
||||||
nose
|
nose
|
||||||
nosehtmloutput
|
nosehtmloutput
|
||||||
openstack.nose_plugin
|
|
||||||
testrepository>=0.0.13
|
testrepository>=0.0.13
|
||||||
testtools>=0.9.22
|
testtools>=0.9.22
|
||||||
unittest2
|
unittest2
|
||||||
|
6
tox.ini
6
tox.ini
@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py27,flake8
|
envlist = py27,pep8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
@ -14,7 +14,7 @@ deps = -r{toxinidir}/tools/pip-requires
|
|||||||
-r{toxinidir}/tools/test-requires
|
-r{toxinidir}/tools/test-requires
|
||||||
commands = python setup.py testr --testr-args="{posargs}"
|
commands = python setup.py testr --testr-args="{posargs}"
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:pep8]
|
||||||
sitepackages = False
|
sitepackages = False
|
||||||
commands = flake8 --show-source swsync bin setup.py tests
|
commands = flake8 --show-source swsync bin setup.py tests
|
||||||
|
|
||||||
@ -28,6 +28,6 @@ commands = python setup.py testr --coverage
|
|||||||
downloadcache = ~/cache/pip
|
downloadcache = ~/cache/pip
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E12,E711,E721,E712,H302,H303,H403,H404,F
|
ignore = E12,E711,E721,E712,H302,H303,H403,H404,H803
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,plugins,tools
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,plugins,tools
|
||||||
|
Loading…
Reference in New Issue
Block a user