]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
hacking: enable W292 (no newline at end of file)
authorIhar Hrachyshka <ihrachys@redhat.com>
Mon, 12 Jan 2015 16:15:31 +0000 (17:15 +0100)
committerIhar Hrachyshka <ihrachys@redhat.com>
Mon, 12 Jan 2015 22:46:11 +0000 (23:46 +0100)
This check was added in hacking 0.10.

Change-Id: If063742bc1be595d1d91b60d9059a01e94d31696

neutron/db/migration/alembic_migrations/versions/4dbe243cd84d_nsxv.py
neutron/db/migration/alembic_migrations/versions/e197124d4b9_add_unique_constrain.py
neutron/tests/unit/ml2/drivers/mech_sriov/test_mech_sriov_nic_switch.py
neutron/tests/unit/ml2/test_type_gre.py
neutron/tests/unit/ml2/test_type_tunnel.py
neutron/tests/unit/ml2/test_type_vxlan.py
tox.ini

index 5867f6c9c7c4def1e9b0a718d6d1eb06ea352cdf..70d7fa5d5de46c914125f94f5d99d65afc3b96d0 100644 (file)
@@ -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)
\ No newline at end of file
+    tz_binding_type_enum.drop(op.get_bind(), checkfirst=False)
index 1ed62265cc3d10e0602fd70215ee14b2e69cfc93..5e5218cade2a1451ef8ff25924276b4512db498a 100644 (file)
@@ -44,4 +44,4 @@ def upgrade():
 
 
 def downgrade():
-    pass
\ No newline at end of file
+    pass
index 92ec081e99caac2ecb8482c36a100cad07952d0f..9aac29b79dab9fbbfccb8d3dec3fee1cf238ac9a 100644 (file)
@@ -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)
\ No newline at end of file
+        self.assertRaises(cfg.Error, self.driver.initialize)
index a967132852076a3dd12c49aace2b1848769f2167..3bdb4e103af5de96c28b1bc82370685a31f78ba6 100644 (file)
@@ -86,4 +86,4 @@ class GreTypeTest(test_type_tunnel.TunnelTypeTestMixin,
 
 class GreTypeMultiRangeTest(test_type_tunnel.TunnelTypeMultiRangeTestMixin,
                            testlib_api.SqlTestCase):
-    DRIVER_CLASS = type_gre.GreTypeDriver
\ No newline at end of file
+    DRIVER_CLASS = type_gre.GreTypeDriver
index b578a645e5b4f32557c7270db8aeee1d3b154ebd..2095f90eb31652decbf34b5821266bd7cd882bf2 100644 (file)
@@ -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)
\ No newline at end of file
+            self.assertFalse(alloc.allocated)
index 8b60706a34b5e530f07a16673673da1db2d1bcdf..bf57b1d4edfcee6b5e819bda3760e8a0bbdfb096 100644 (file)
@@ -95,4 +95,4 @@ class VxlanTypeTest(test_type_tunnel.TunnelTypeTestMixin,
 
 class VxlanTypeMultiRangeTest(test_type_tunnel.TunnelTypeMultiRangeTestMixin,
                               testlib_api.SqlTestCase):
-    DRIVER_CLASS = type_vxlan.VxlanTypeDriver
\ No newline at end of file
+    DRIVER_CLASS = type_vxlan.VxlanTypeDriver
diff --git a/tox.ini b/tox.ini
index 1ef7f9864d5a9719d05afc321e5c695af26e34c5..fa7c6ad233dc5a830ce4edee6f085365a40e4706 100644 (file)
--- a/tox.ini
+++ b/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