From 967d4589817b1a97d62ca805e4e628fc15878661 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Mon, 12 Jan 2015 17:15:31 +0100 Subject: [PATCH] hacking: enable W292 (no newline at end of file) This check was added in hacking 0.10. Change-Id: If063742bc1be595d1d91b60d9059a01e94d31696 --- .../migration/alembic_migrations/versions/4dbe243cd84d_nsxv.py | 2 +- .../versions/e197124d4b9_add_unique_constrain.py | 2 +- .../unit/ml2/drivers/mech_sriov/test_mech_sriov_nic_switch.py | 2 +- neutron/tests/unit/ml2/test_type_gre.py | 2 +- neutron/tests/unit/ml2/test_type_tunnel.py | 2 +- neutron/tests/unit/ml2/test_type_vxlan.py | 2 +- tox.ini | 3 +-- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/neutron/db/migration/alembic_migrations/versions/4dbe243cd84d_nsxv.py b/neutron/db/migration/alembic_migrations/versions/4dbe243cd84d_nsxv.py index 5867f6c9c7c..70d7fa5d5de 100644 --- a/neutron/db/migration/alembic_migrations/versions/4dbe243cd84d_nsxv.py +++ b/neutron/db/migration/alembic_migrations/versions/4dbe243cd84d_nsxv.py @@ -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) diff --git a/neutron/db/migration/alembic_migrations/versions/e197124d4b9_add_unique_constrain.py b/neutron/db/migration/alembic_migrations/versions/e197124d4b9_add_unique_constrain.py index 1ed62265cc3..5e5218cade2 100644 --- a/neutron/db/migration/alembic_migrations/versions/e197124d4b9_add_unique_constrain.py +++ b/neutron/db/migration/alembic_migrations/versions/e197124d4b9_add_unique_constrain.py @@ -44,4 +44,4 @@ def upgrade(): def downgrade(): - pass \ No newline at end of file + pass diff --git a/neutron/tests/unit/ml2/drivers/mech_sriov/test_mech_sriov_nic_switch.py b/neutron/tests/unit/ml2/drivers/mech_sriov/test_mech_sriov_nic_switch.py index 92ec081e99c..9aac29b79da 100644 --- a/neutron/tests/unit/ml2/drivers/mech_sriov/test_mech_sriov_nic_switch.py +++ b/neutron/tests/unit/ml2/drivers/mech_sriov/test_mech_sriov_nic_switch.py @@ -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) diff --git a/neutron/tests/unit/ml2/test_type_gre.py b/neutron/tests/unit/ml2/test_type_gre.py index a9671328520..3bdb4e103af 100644 --- a/neutron/tests/unit/ml2/test_type_gre.py +++ b/neutron/tests/unit/ml2/test_type_gre.py @@ -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 diff --git a/neutron/tests/unit/ml2/test_type_tunnel.py b/neutron/tests/unit/ml2/test_type_tunnel.py index b578a645e5b..2095f90eb31 100644 --- a/neutron/tests/unit/ml2/test_type_tunnel.py +++ b/neutron/tests/unit/ml2/test_type_tunnel.py @@ -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) diff --git a/neutron/tests/unit/ml2/test_type_vxlan.py b/neutron/tests/unit/ml2/test_type_vxlan.py index 8b60706a34b..bf57b1d4edf 100644 --- a/neutron/tests/unit/ml2/test_type_vxlan.py +++ b/neutron/tests/unit/ml2/test_type_vxlan.py @@ -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 1ef7f9864d5..fa7c6ad233d 100644 --- 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