Skip to content
Browse files

pre-commit: add flake8 plugin dependencies

Since the flake8 pre-commit hook uses its own virtualenv, one needs to
specify additional flake8 plugins in the pre-commit config.

We also obtain the flake8 pre-commit hook from the flake8 upstream
repository now, fixing a previous deprecation warning.

Signed-off-by: Niklas Koep <>
  • Loading branch information
nkoep authored and ninamiolane committed Feb 12, 2020
1 parent 48d464d commit 45fe89b7980173bbc060627636bc7c918ce5e188
Showing with 8 additions and 2 deletions.
  1. +8 −2 .pre-commit-config.yaml
@@ -6,12 +6,18 @@ repos:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: flake8
exclude: examples/.*ipynb$
- id: mixed-line-ending
- --fix=no
- id: no-commit-to-branch
- --branch=master
- id: trailing-whitespace
- repo:
rev: 3.7.9
- id: flake8
- flake8-docstrings
- flake8-import-order
exclude: examples/.*ipynb$

0 comments on commit 45fe89b

Please sign in to comment.
You can’t perform that action at this time.