From 43b10754f43dbe249d1485e3a7e18988e62e1792 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Wed, 11 Mar 2020 13:38:31 +0100 Subject: [PATCH] Add pre-commit config --- .pre-commit-config.yaml | 14 ++++++++++++++ 1 file changed, 14 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..343f2d4 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: trailing-whitespace + - id: flake8 + - id: check-merge-conflict + - id: check-yaml + - id: check-executables-have-shebangs + - id: mixed-line-ending +- repo: https://github.com/psf/black + rev: stable + hooks: + - id: black