]> git.0d.be Git - panikweb-esperanzah.git/blobdiff - .pre-commit-config.yaml
trivial: use pre-commit
[panikweb-esperanzah.git] / .pre-commit-config.yaml
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644 (file)
index 0000000..1708cb8
--- /dev/null
@@ -0,0 +1,23 @@
+# See https://pre-commit.com for more information
+# See https://pre-commit.com/hooks.html for more hooks
+repos:
+  - repo: https://github.com/asottile/pyupgrade
+    rev: v2.26.0
+    hooks:
+      - id: pyupgrade
+        args: ['--keep-percent-format', '--py37-plus']
+  - repo: https://github.com/adamchainz/django-upgrade
+    rev: 1.2.0
+    hooks:
+      - id: django-upgrade
+        args: [--target-version, "2.2"]
+  - repo: https://github.com/psf/black
+    rev: 21.10b0
+    hooks:
+      - id: black
+        args: ['--target-version', 'py37', '--skip-string-normalization', '--line-length', '110']
+  - repo: https://github.com/PyCQA/isort
+    rev: 5.7.0
+    hooks:
+      - id: isort
+        args: ['--profile', 'black', '--line-length', '110']