misc: add black/pre-commit configuration

This commit is contained in:
Frédéric Péters 2021-02-26 12:31:42 +01:00
parent 3a2cca68da
commit b2c0f10899
1 changed files with 8 additions and 0 deletions

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

@ -0,0 +1,8 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
args: ['--target-version', 'py37', '--skip-string-normalization', '--line-length', '110']