summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.pre-commit-config.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 00000000..525c7eb8
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,24 @@
+hooks:
+ - &base
+ language: python
+ types: [python]
+ require_serial: true
+ exclude: ^migrations/versions
+ - &flake8
+ id: flake8
+ name: flake8
+ entry: flake8
+ <<: *base
+ - &isort
+ id: isort
+ name: isort
+ entry: isort
+ <<: *base
+
+repos:
+ - repo: local
+ hooks:
+ - <<: *flake8
+ - <<: *isort
+ args: ['--check-only', '--diff']
+