From 5b1c67e5c1b20e9159d47afcf25b3d41ebb80bf1 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Sat, 14 Mar 2020 10:55:21 -0400 Subject: [PATCH] Add pre-commit config --- .pre-commit-config.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..60cc0ca --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,27 @@ +--- +repos: + - repo: https://github.com/ambv/black + rev: stable + hooks: + - id: black + language_version: python3.7 + + - repo: https://github.com/asottile/blacken-docs + rev: v0.5.0 + hooks: + - id: blacken-docs + additional_dependencies: [black==19.3b0] + language_version: python3.7 + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.0.0 + hooks: + - id: end-of-file-fixer + - id: fix-encoding-pragma + args: [--remove] + - id: trailing-whitespace + + - repo: https://github.com/asottile/reorder_python_imports + rev: v1.8.0 + hooks: + - id: reorder-python-imports