ci: add flake8 to pre-commit
diff --git a/.flake8 b/.flake8
new file mode 100644
index 0000000..6deafc2
--- /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 7ea971d..b2bf0ab 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -17,6 +17,11 @@
     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 1c125e0..e749725 100644
--- a/plugins/modules/ceph_pool.py
+++ b/plugins/modules/ceph_pool.py
@@ -661,9 +661,9 @@
                     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,