Merge pull request #2584 from pydanny/pre-commit-improvements

This commit is contained in:
Bruno Alla 2020-05-04 09:33:11 +01:00 committed by GitHub
commit 3ad1bb82f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,14 +7,18 @@ repos:
rev: master
hooks:
- id: trailing-whitespace
files: (^|/).+\.(py|html|sh|css|js)$
- id: end-of-file-fixer
- id: check-yaml
- repo: local
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
name: flake8
entry: flake8
language: python
types: [python]
args: ['--config=setup.cfg']
additional_dependencies: [flake8-isort]