]> git.0d.be Git - panikweb-esperanzah.git/commitdiff
trivial: use pre-commit
authorFrédéric Péters <fpeters@0d.be>
Thu, 25 Nov 2021 09:21:20 +0000 (10:21 +0100)
committerFrédéric Péters <fpeters@0d.be>
Thu, 25 Nov 2021 09:21:20 +0000 (10:21 +0100)
.pre-commit-config.yaml [new file with mode: 0644]

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']