diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..6deafc26 --- /dev/null +++ b/.flake8 @@ -0,0 +1,2 @@ +[flake8] +max-line-length = 120 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7ea971dd..b2bf0abe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/plugins/modules/ceph_pool.py b/plugins/modules/ceph_pool.py index 1c125e02..e749725f 100644 --- a/plugins/modules/ceph_pool.py +++ b/plugins/modules/ceph_pool.py @@ -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,