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