From d3db658ed8e9cf41bf9cdf32a7c7b2130a61efc7 Mon Sep 17 00:00:00 2001 From: "S. Co1" Date: Tue, 3 Sep 2019 13:37:19 -0400 Subject: Use pipenv lint script for pre-commit hook --- .pre-commit-config.yaml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c20c0d85..86035786 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,15 +1,10 @@ repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.2.3 +- repo: local hooks: - - id: flake8 - exclude: migrations/ - additional_dependencies: [ - "pydocstyle<4.0", - "flake8-bandit", - "flake8-bugbear", - "flake8-docstrings", - "flake8-import-order ", - "flake8-string-format", - "flake8-tidy-imports" - ] \ No newline at end of file + - id: flake8 + name: Flake8 + description: This hook runs flake8 within our project's pipenv environment. + entry: pipenv run lint + language: python + types: [python] + require_serial: true \ No newline at end of file -- cgit v1.2.3