aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-09-03 13:34:01 -0400
committerGravatar S. Co1 <[email protected]>2019-09-03 13:34:01 -0400
commit9d73153c5f8428e8e27ed28042e0a69312d70c30 (patch)
treeac7d993892446b6a07fbf5cc9dc036dec0824478
parentUpdate contrib doc for allowing edits from maintainers (diff)
Use pipenv lint script for pre-commit hook
-rw-r--r--.pre-commit-config.yaml18
1 files changed, 8 insertions, 10 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4776bc63b..860357868 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,12 +1,10 @@
repos:
-- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v2.2.3
+- repo: local
hooks:
- - id: flake8
- additional_dependencies: [
- "flake8-bugbear",
- "flake8-import-order",
- "flake8-tidy-imports",
- "flake8-todo",
- "flake8-string-format"
- ] \ 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