ci: add flake8 to pre-commit

This commit is contained in:
Mohammed Naser committed 2022-09-19 16:47:12 -04:00
1 parent 6bf6535735
commit 05ad921448
3 files changed
+9 -2

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 120
+5
View File
@@ -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:
+2 -2
View File
@@ -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,