aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-11-14 11:14:40 -0800
committerGravatar MarkKoz <[email protected]>2020-11-14 11:21:59 -0800
commit56e5ab1ab1ea828f6d18308bad82493a01837cfe (patch)
tree005bcac85d094bd93f04d1f39a17cf129fd37d72
parentUpdate to Python 3.9 (diff)
Use flake8 from pipenv when running pre-commit hooks
-rw-r--r--.pre-commit-config.yaml19
1 files changed, 7 insertions, 12 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b5f3715..d7d4b84 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
- additional_dependencies: [
- pydocstyle ~= 4.0,
- "flake8-docstrings >= 1.3.1, == 1.*",
- flake8-bugbear ~= 19.3,
- flake8-import-order ~= 0.18.1,
- flake8-tidy-imports ~= 2.0,
- flake8-todo ~= 0.7,
- flake8-string-format ~= 0.2.3,
- flake8-quotes ~= 2.1
- ]
+ name: Flake8
+ description: This hook runs flake8 within our project's pipenv environment.
+ entry: pipenv run flake8
+ language: python
+ types: [python]
+ require_serial: true