diff options
author | 2019-09-03 13:27:52 -0400 | |
---|---|---|
committer | 2019-09-03 13:29:44 -0400 | |
commit | 14e76f8443749895d3f91811adb9c89ba9fba077 (patch) | |
tree | 8179d0fddbc8d3407139316303816f32fef967f3 | |
parent | Add dependency pinning & relock (diff) |
Use pipenv lint script for pre-commit hook
-rw-r--r-- | .pre-commit-config.yaml | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3a1ce68c..86035786 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,10 @@ repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.2.3 +- repo: local hooks: - - id: flake8 - additional_dependencies: [ - "pydocstyle<4.0", - "flake8-bugbear", - "flake8-docstrings", - "flake8-import-order", - "flake8-polyfill", - "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 |