From 758c21e124765f38de79d4978f5f9b46c52845a5 Mon Sep 17 00:00:00 2001 From: Anna Sidwell Date: Tue, 20 Aug 2019 01:26:29 +0200 Subject: [PATCH] Add pre-commit config --- .pre-commit-config.yaml | 15 +++++++++++++++ 1 file changed, 15 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..6801c76 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,15 @@ +repos: +- repo: https://github.com/ambv/black + rev: 18.9b0 + hooks: + - id: black + +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.1.0 + hooks: + - id: flake8 + +- repo: https://github.com/asottile/reorder_python_imports + rev: v1.3.5 + hooks: + - id: reorder-python-imports