From e6b57ce0dd9cffd21b47dafc2e7147e3cc45aaea Mon Sep 17 00:00:00 2001 From: Rahul Nair Date: Wed, 6 Nov 2019 10:55:52 -0800 Subject: [PATCH] Create .pre-commit-config.yaml pre commit hooks that is used by the project --- .pre-commit-config.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..310e1ce --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,25 @@ +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.4.0 + hooks: + - id: check-merge-conflict + - id: debug-statements + - id: flake8 + args: [--max-line-length=90] + +- repo: https://github.com/ambv/black + rev: stable + hooks: + - id: black + language_version: python3.7 + +- repo: https://github.com/Lucas-C/pre-commit-hooks-bandit + rev: v1.0.4 + hooks: + - id: python-bandit-vulnerability-check + args: [-l, --recursive, -x, tests] + files: .py$ + +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v0.740 + hooks: + - id: mypy