ci: add flake8 to pre-commit
This commit is contained in:
1 parent
6bf6535735
commit
05ad921448
3 files changed
+9
-2
No files matched your search
@@ -17,6 +17,11 @@ repos:
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
- repo: https://github.com/pycqa/flake8
|
||||
rev: 5.0.4
|
||||
hooks:
|
||||
- id: flake8
|
||||
|
||||
- repo: https://github.com/pycqa/isort
|
||||
rev: 5.10.1
|
||||
hooks:
|
||||
|
||||
@@ -661,9 +661,9 @@ def run_module():
|
||||
delta.pop("pgp_num", None)
|
||||
|
||||
if len(delta) == 0:
|
||||
out = "Skipping pool {}.\nUpdating either 'size' on an erasure-coded pool or 'pg_num'/'pgp_num' on a pg autoscaled pool is incompatible".format(
|
||||
out = "Skipping pool {}.\nUpdating either 'size' on an erasure-coded pool or 'pg_num'/'pgp_num' on a pg autoscaled pool is incompatible".format( # noqa: E501
|
||||
name
|
||||
) # noqa: E501
|
||||
)
|
||||
else:
|
||||
rc, cmd, out, err = update_pool(
|
||||
module,
|
||||
|
||||
Reference in new issue
Block a user