Add pre-commit

This commit is contained in:
Filip Kucharczyk 2019-12-05 00:54:20 +01:00
parent 17151f67c2
commit 5b9f2bac87

13
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,13 @@
repos:
- repo: https://github.com/ambv/black
rev: 19.3b0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: flake8