aboutsummaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-09-03 13:37:19 -0400
committerGravatar S. Co1 <[email protected]>2019-09-03 13:37:19 -0400
commitd3db658ed8e9cf41bf9cdf32a7c7b2130a61efc7 (patch)
tree2be84d11577ef34a30cd59ed8a83bd88d88715df /.pre-commit-config.yaml
parentUpdate 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.yaml21
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