add pre-commit config for flake8

This commit is contained in:
Jon S. Stumpf 2019-05-31 13:38:39 -04:00 committed by David Lord
parent b61cbf8ab4
commit 549fed29ea
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
6 changed files with 41 additions and 6 deletions

View file

@ -3,3 +3,14 @@ repos:
rev: 19.3b0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.7
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: check-byte-order-marker
- id: trailing-whitespace
- id: end-of-file-fixer