From c515b53218d6dff3d7cb397f5090851cd047f824 Mon Sep 17 00:00:00 2001 From: Kaj Siebert Date: Sat, 26 Aug 2023 10:28:07 +0200 Subject: [PATCH] Add pre-commit --- .pre-commit-config.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..b6ee6de2 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,11 @@ +repos: + - repo: https://github.com/psf/black + rev: 23.7.0 + hooks: + - id: black + exclude: ^migrations/ + - repo: https://github.com/pycqa/isort + rev: 5.12.0 + hooks: + - id: isort + args: ["--profile", "black"] \ No newline at end of file