diff --git a/.flake8 b/.flake8
new file mode 100644
index 0000000000000000000000000000000000000000..e2ce5ca6b5a8bd8cd020835760a6c8705a0746d5
--- /dev/null
+++ b/.flake8
@@ -0,0 +1,4 @@
+[flake8]
+select = F,E101,E7,E9,W6
+extend-ignore = E741
+exclude = */options/*
\ No newline at end of file
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index fd0ae832ac0af2c6ee4d4332cbf61cf894ea43b6..6755cc5d6c94e0ebcc7e62be297c282ac6c4d497 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -15,3 +15,7 @@ repos:
     rev: 5.12.0
     hooks:
     -   id: isort
+-   repo: https://github.com/pycqa/flake8
+    rev: 6.0.0
+    hooks:
+    -   id: flake8