Unpin flake8, fix lint

Change-Id: I0c3a4b4f8291e0b19d131269554e09346754e120
This commit is contained in:
Frode Nordahl 2020-09-08 09:32:35 +02:00
parent 7a28689ccc
commit ed3a162d57
No known key found for this signature in database
GPG Key ID: 6A5D59A3BA48373F
4 changed files with 6 additions and 6 deletions

View File

@ -24,10 +24,10 @@ from charmhelpers.core.host import (
is_container, is_container,
lsb_release, lsb_release,
) )
from charmhelpers.contrib.hahelpers.cluster import( from charmhelpers.contrib.hahelpers.cluster import (
get_hacluster_config, get_hacluster_config,
) )
from charmhelpers.contrib.hahelpers.apache import( from charmhelpers.contrib.hahelpers.apache import (
install_ca_cert install_ca_cert
) )
from charmhelpers.contrib.openstack.utils import ( from charmhelpers.contrib.openstack.utils import (
@ -155,7 +155,7 @@ def config_changed():
for module in module_settings.split(): for module in module_settings.split():
try: try:
modprobe(module) modprobe(module)
except: except Exception:
message = "Failed to load kernel module '%s'" % module message = "Failed to load kernel module '%s'" % module
log(message, level=WARNING) log(message, level=WARNING)

View File

@ -1134,7 +1134,7 @@ def check_optional_relations(configs):
if relation_ids('ha'): if relation_ids('ha'):
try: try:
get_hacluster_config() get_hacluster_config()
except: except Exception:
return ('blocked', return ('blocked',
'hacluster missing configuration: ' 'hacluster missing configuration: '
'vip, vip_iface, vip_cidr') 'vip, vip_iface, vip_cidr')

View File

@ -10,7 +10,7 @@
charm-tools>=2.4.4 charm-tools>=2.4.4
requests>=2.18.4 requests>=2.18.4
mock>=1.2 mock>=1.2
flake8>=2.2.4,<=2.4.1 flake8>=2.2.4
stestr>=2.2.0 stestr>=2.2.0
coverage>=4.5.2 coverage>=4.5.2
pyudev # for ceph-* charm unit tests (need to fix the ceph-* charm unit tests/mocking) pyudev # for ceph-* charm unit tests (need to fix the ceph-* charm unit tests/mocking)

View File

@ -116,5 +116,5 @@ commands =
functest-run-suite --keep-model --bundle {posargs} functest-run-suite --keep-model --bundle {posargs}
[flake8] [flake8]
ignore = E402,E226 ignore = E402,E226,W504
exclude = */charmhelpers exclude = */charmhelpers