diff options
author | 2019-09-03 13:37:19 -0400 | |
---|---|---|
committer | 2019-09-03 13:37:19 -0400 | |
commit | d3db658ed8e9cf41bf9cdf32a7c7b2130a61efc7 (patch) | |
tree | 2be84d11577ef34a30cd59ed8a83bd88d88715df /.pre-commit-config.yaml | |
parent | Update contrib doc for allowing edits from maintainers (diff) |
Use pipenv lint script for pre-commit hook
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 21 |
1 files changed, 8 insertions, 13 deletions
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 |