black & pre-commit config

This commit is contained in:
James Turk 2020-05-21 15:43:55 -04:00
parent f04c402121
commit 3884bd3de5
1 changed files with 14 additions and 0 deletions

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

@ -0,0 +1,14 @@
default_language_version:
python: python3.7
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0 # Use the ref you want to point at
hooks:
- id: check-merge-conflict
- id: debug-statements
- id: flake8
args: ["--ignore=E203,E501,W503"]
- repo: https://github.com/ambv/black
rev: 19.10b0
hooks:
- id: black