From 0ae4d86c913158014097b7770b389af28ab5886c Mon Sep 17 00:00:00 2001
From: jo <ljonas@riseup.net>
Date: Mon, 5 Dec 2022 14:48:39 +0100
Subject: [PATCH] chore: add flake8 pre-commit hook

Part-of: <https://dev.funkwhale.audio/funkwhale/network/-/merge_requests/58>
---
 .flake8                 | 4 ++++
 .pre-commit-config.yaml | 5 +++++
 2 files changed, 9 insertions(+)
 create mode 100644 .flake8

diff --git a/.flake8 b/.flake8
new file mode 100644
index 0000000..69a4b17
--- /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 e9e817d..2fbb67d 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:
-- 
GitLab