From cb1854b0dcd35ebb89c9312f198bec3bfd313418 Mon Sep 17 00:00:00 2001 From: Joran Honig Date: Tue, 18 Feb 2020 17:08:15 +0100 Subject: [PATCH] add pre commit to repo --- .pre-commit-config.yaml | 14 ++++++++++++++ requirements.txt | 1 + 2 files 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 00000000..fadc057f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.4.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files +- repo: https://github.com/psf/black + rev: 19.3b0 + hooks: + - id: black diff --git a/requirements.txt b/requirements.txt index 0c5a2394..f36751af 100644 --- a/requirements.txt +++ b/requirements.txt @@ -31,3 +31,4 @@ z3-solver>=4.8.5.0 pysha3 matplotlib pythx +pre-commit