From: Mike Bayer Date: Sat, 18 May 2019 14:47:39 +0000 (-0400) Subject: Add .pre-commit-config.yaml X-Git-Tag: rel_1_4_0b1~871 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69ebf2cc365baf82016c9d1672fe89e39594b523;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.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 0000000000..f9b217e552 --- /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 + +