Fix pre-commit config & add Black to the pre-commmit hooks
Fixes
@@ -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]
