diff --git a/.flake8 b/.flake8
new file mode 100644
index 0000000000000000000000000000000000000000..69a4b17f34300e9ac75012610242f4a180ca7031
--- /dev/null
+++ b/.flake8
@@ -0,0 +1,4 @@
+# Use .flake8 file until pyproject.toml is supported
+# See https://github.com/PyCQA/flake8/issues/234
+[flake8]
+max-line-length = 120
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e9e817d4ba60ec969dc9338e4c2ea882258ed007..2fbb67dc65a2918365352f9414c19cfec9f3cb9f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,6 +39,11 @@ repos:
     hooks:
       - id: isort
 
+  - repo: https://github.com/pycqa/flake8
+    rev: 6.0.0
+    hooks:
+      - id: flake8
+
   - repo: https://github.com/pre-commit/mirrors-prettier
     rev: v2.7.1
     hooks: