From f478cd54d73808265ec37b79e9015bd9ba6846fd Mon Sep 17 00:00:00 2001 From: Dan Braghis <dan.braghis@torchbox.com> Date: Wed, 14 Oct 2020 19:06:32 +0100 Subject: [PATCH] Add pre-commit support --- .pre-commit-config.yaml | 13 +++++++++++++ 1 file changed, 13 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 0000000000..bdd79d9a1f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,13 @@ +repos: + - repo: https://github.com/timothycrosley/isort + # isort config is in setup.cfg + rev: 5.6.4 + hooks: + - id: isort + language_version: python3 + - repo: https://gitlab.com/pycqa/flake8 + # flake8 config is in setup.cfg + rev: 3.8.4 + hooks: + - id: flake8 + language_version: python3