From eb2315a50fcdce96a26446b9ee61c922fc341351 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 29 Oct 2021 16:20:36 -0500 Subject: [PATCH] Add pre-commit-config.yaml --- 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..b28ff08 --- /dev/null +++ b/pre-commit-config.yaml @@ -0,0 +1,15 @@ +--- +repos: + - repo: https://github.com/PyCQA/isort + rev: 5.9.3 + hooks: + - id: isort + args: ['--profile', 'black', '--check-only', '--diff'] + files: ^((model_utils|tests)/)|setup.py + + - repo: https://github.com/PyCQA/flake8 + rev: 4.0.1 + hooks: + - id: flake8 + args: ['--ignore=E402,E501,E731,W503'] + files: ^(model_utils|tests)/