From: Mike Bayer Date: Sat, 18 May 2019 14:50:40 +0000 (-0400) Subject: Add .pre-commit-config.yaml X-Git-Tag: rel_1_0_11~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a14e9c8fc3c51e8dadab31db6e6d9bc4c6ce4870;p=thirdparty%2Fsqlalchemy%2Falembic.git Add .pre-commit-config.yaml 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 --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..f9b217e5 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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 + +