]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add .pre-commit-config.yaml
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 18 May 2019 14:47:39 +0000 (10:47 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 18 May 2019 14:49:13 +0000 (10:49 -0400)
See https://pre-commit.com/ for documentation on how to use
this file.

SQLAlchemy and related projects make use of Black and zimports
for code formatting, this hook allows for automated pre-commit
runs.

Change-Id: I4bbb49747e9f7fb52251dc61ecda98361cd036fd

.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..f9b217e
--- /dev/null
@@ -0,0 +1,15 @@
+# See https://pre-commit.com for more information
+# See https://pre-commit.com/hooks.html for more hooks
+repos:
+-   repo: https://github.com/python/black/
+    rev: 19.3b0
+    hooks:
+    -   id: black
+        args: [-l 79]
+
+-   repo: https://github.com/sqlalchemyorg/zimports/
+    rev: master
+    hooks:
+    -   id: zimports
+
+