add pre-commit configuration
authorFrédéric Péters <fpeters@0d.be>
Fri, 26 Mar 2021 10:11:52 +0000 (11:11 +0100)
committerFrédéric Péters <fpeters@0d.be>
Fri, 26 Mar 2021 10:11:52 +0000 (11:11 +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..a14705c
--- /dev/null
@@ -0,0 +1,8 @@
+# See https://pre-commit.com for more information
+# See https://pre-commit.com/hooks.html for more hooks
+repos:
+-   repo: https://github.com/psf/black
+    rev: 20.8b1
+    hooks:
+    - id: black
+      args: ['--target-version', 'py37', '--skip-string-normalization', '--line-length', '110']