hacking: enable W292 (no newline at end of file)
This check was added in hacking 0.10. Change-Id: If063742bc1be595d1d91b60d9059a01e94d31696
This commit is contained in:
parent
1de25088b4
commit
967d458981
@ -163,4 +163,4 @@ def downgrade():
|
||||
edge_types_enum.drop(op.get_bind(), checkfirst=False)
|
||||
internal_network_purpose_enum.drop(op.get_bind(), checkfirst=False)
|
||||
internal_edge_purpose_enum.drop(op.get_bind(), checkfirst=False)
|
||||
tz_binding_type_enum.drop(op.get_bind(), checkfirst=False)
|
||||
tz_binding_type_enum.drop(op.get_bind(), checkfirst=False)
|
||||
|
@ -44,4 +44,4 @@ def upgrade():
|
||||
|
||||
|
||||
def downgrade():
|
||||
pass
|
||||
pass
|
||||
|
@ -249,4 +249,4 @@ class SriovSwitchMechConfigTestCase(SriovNicSwitchMechanismBaseTestCase):
|
||||
|
||||
def test_pci_vendor_config_wrong_entry(self):
|
||||
self._set_config('wrong_entry')
|
||||
self.assertRaises(cfg.Error, self.driver.initialize)
|
||||
self.assertRaises(cfg.Error, self.driver.initialize)
|
||||
|
@ -86,4 +86,4 @@ class GreTypeTest(test_type_tunnel.TunnelTypeTestMixin,
|
||||
|
||||
class GreTypeMultiRangeTest(test_type_tunnel.TunnelTypeMultiRangeTestMixin,
|
||||
testlib_api.SqlTestCase):
|
||||
DRIVER_CLASS = type_gre.GreTypeDriver
|
||||
DRIVER_CLASS = type_gre.GreTypeDriver
|
||||
|
@ -218,4 +218,4 @@ class TunnelTypeMultiRangeTestMixin(object):
|
||||
for key in (self.TUN_MIN0, self.TUN_MAX0,
|
||||
self.TUN_MIN1, self.TUN_MAX1):
|
||||
alloc = self.driver.get_allocation(self.session, key)
|
||||
self.assertFalse(alloc.allocated)
|
||||
self.assertFalse(alloc.allocated)
|
||||
|
@ -95,4 +95,4 @@ class VxlanTypeTest(test_type_tunnel.TunnelTypeTestMixin,
|
||||
|
||||
class VxlanTypeMultiRangeTest(test_type_tunnel.TunnelTypeMultiRangeTestMixin,
|
||||
testlib_api.SqlTestCase):
|
||||
DRIVER_CLASS = type_vxlan.VxlanTypeDriver
|
||||
DRIVER_CLASS = type_vxlan.VxlanTypeDriver
|
||||
|
3
tox.ini
3
tox.ini
@ -79,8 +79,7 @@ commands = python setup.py build_sphinx
|
||||
# H305 imports not grouped correctly
|
||||
# H404 multi line docstring should start with a summary
|
||||
# H405 multi line docstring summary not separated with an empty line
|
||||
# W292 no newline at end of file
|
||||
ignore = E125,E126,E128,E129,E265,H238,H305,H404,H405,W292
|
||||
ignore = E125,E126,E128,E129,E265,H238,H305,H404,H405
|
||||
show-source = true
|
||||
builtins = _
|
||||
# TODO(dougw) neutron/tests/unit/vmware exclusion is a temporary services split hack
|
||||
|
Loading…
Reference in New Issue
Block a user