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

@ -155,7 +155,7 @@ def config_changed():
for module in module_settings.split():
try:
modprobe(module)
except:
except Exception:
message = "Failed to load kernel module '%s'" % module
log(message, level=WARNING)

View File

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

View File

@ -10,7 +10,7 @@
charm-tools>=2.4.4
requests>=2.18.4
mock>=1.2
flake8>=2.2.4,<=2.4.1
flake8>=2.2.4
stestr>=2.2.0
coverage>=4.5.2
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}
[flake8]
ignore = E402,E226
ignore = E402,E226,W504
exclude = */charmhelpers