mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 01:32:18 +02:00
Enable flake8 rule W292 No newline at end of file (#6274)
https://www.flake8rules.com/rules/W292.html
This commit is contained in:
parent
c1cb84b493
commit
7ba43e447c
2
.github/linters/.flake8
vendored
2
.github/linters/.flake8
vendored
@ -16,4 +16,4 @@
|
||||
# under the License.
|
||||
|
||||
[flake8]
|
||||
select = W291,W293
|
||||
select = W291,W292,W293
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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))
|
||||
|
||||
@ -20,4 +20,4 @@ Created on May 17, 2011
|
||||
'''
|
||||
|
||||
class OvmObject(object):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -789,4 +789,4 @@ class TestVMLifeCycleSharedNwVPC(cloudstackTestCase):
|
||||
id=self.lb_rule.id,
|
||||
listall=True
|
||||
)
|
||||
return
|
||||
return
|
||||
|
||||
@ -253,4 +253,4 @@ class TestAnnotations(cloudstackTestCase):
|
||||
|
||||
# Remove the annotation
|
||||
self.removeAnnotation(annotation_id)
|
||||
del self.added_annotations[-1]
|
||||
del self.added_annotations[-1]
|
||||
|
||||
@ -2043,4 +2043,4 @@ class TestSharedNetwork(cloudstackTestCase):
|
||||
len(nic_ip_address),
|
||||
0,
|
||||
"Failed to find the placeholder IP"
|
||||
)
|
||||
)
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -480,4 +480,4 @@ class TestScaleVm(cloudstackTestCase):
|
||||
else:
|
||||
self.fail("Expected an exception to be thrown, failing")
|
||||
|
||||
return
|
||||
return
|
||||
|
||||
@ -43,4 +43,4 @@ def getMSip():
|
||||
|
||||
for arg in sys.argv[1:]:
|
||||
MS_ip = arg
|
||||
return MS_ip
|
||||
return MS_ip
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user