Enable flake8 rule W292 No newline at end of file (#6274)

https://www.flake8rules.com/rules/W292.html
This commit is contained in:
John Bampton 2022-06-30 16:38:27 +10:00 committed by GitHub
parent c1cb84b493
commit 7ba43e447c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 13 additions and 13 deletions

View File

@ -16,4 +16,4 @@
# under the License.
[flake8]
select = W291,W293
select = W291,W292,W293

View File

@ -13,4 +13,4 @@
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# under the License.

View File

@ -13,4 +13,4 @@
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# under the License.

View File

@ -13,4 +13,4 @@
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# under the License.

View File

@ -94,4 +94,4 @@ def _loads(node):
def loads(xmlstr):
xmlstr = re.sub(r'xmlns=".*"', '', xmlstr)
root = etree.fromstring(xmlstr)
return _loads(root)
return _loads(root)

View File

@ -51,4 +51,4 @@ class OvmLogger(object):
def warning(self, func, msg=None):
assert callable(func), "%s is not a function"%func
fmt = "[%s.%s]: "%(self.className, func.__name__)
self.logger.warning("%s%s"%(fmt,msg))
self.logger.warning("%s%s"%(fmt,msg))

View File

@ -20,4 +20,4 @@ Created on May 17, 2011
'''
class OvmObject(object):
pass
pass

View File

@ -789,4 +789,4 @@ class TestVMLifeCycleSharedNwVPC(cloudstackTestCase):
id=self.lb_rule.id,
listall=True
)
return
return

View File

@ -253,4 +253,4 @@ class TestAnnotations(cloudstackTestCase):
# Remove the annotation
self.removeAnnotation(annotation_id)
del self.added_annotations[-1]
del self.added_annotations[-1]

View File

@ -2043,4 +2043,4 @@ class TestSharedNetwork(cloudstackTestCase):
len(nic_ip_address),
0,
"Failed to find the placeholder IP"
)
)

View File

@ -398,4 +398,4 @@ class TestL2PersistentNetworks(cloudstackTestCase):
0,
"Failed to find bridge on the breth1-" + str(network_vlan))
elif self.hypervisor.lower() in ["xenserver", "vmware"]:
self.verify_network_setup_on_host_per_cluster(self.hypervisor.lower(), network_vlan)
self.verify_network_setup_on_host_per_cluster(self.hypervisor.lower(), network_vlan)

View File

@ -480,4 +480,4 @@ class TestScaleVm(cloudstackTestCase):
else:
self.fail("Expected an exception to be thrown, failing")
return
return

View File

@ -43,4 +43,4 @@ def getMSip():
for arg in sys.argv[1:]:
MS_ip = arg
return MS_ip
return MS_ip