From 32b32bf1d9037ddd527680769a861c0c9c6b37c8 Mon Sep 17 00:00:00 2001 From: Tim Head Date: Fri, 31 May 2019 09:50:26 +0200 Subject: [PATCH] Configure pre-commit hooks and make them a dev dependency --- .pre-commit-config.yaml | 5 +++++ dev-requirements.txt | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..922d9424 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: +- repo: https://github.com/ambv/black + rev: 18.9b0 + hooks: + - id: black diff --git a/dev-requirements.txt b/dev-requirements.txt index e54bfe8d..ed70cf47 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,6 +1,7 @@ -# Note that there is also a Pipfile for this project if you are updating this +# Note that there is also a Pipfile for this project if you are updating this # file do not forget to update the Pipfile accordingly pyyaml pytest>=3.6 wheel pytest-cov +pre-commit