misc: add black files/notes

This commit is contained in:
Frédéric Péters 2021-01-19 22:09:31 +01:00
parent 2663e08e2d
commit 2a72e70234
3 changed files with 22 additions and 0 deletions

2
.git-blame-ignore-revs Normal file
View File

@ -0,0 +1,2 @@
# trivial: apply black
2663e08e2d556c53eaaf0c40f678b2e2f4eed1e1

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']

12
README
View File

@ -1 +1,13 @@
Extra modules and customizations for w.c.s.
===========================================
Code Style
----------
black is used to format the code, using thoses parameters:
black --target-version py37 --skip-string-normalization --line-length 110
There is .pre-commit-config.yaml to use pre-commit to automatically run black
before commits. (execute `pre-commit install` to install the git hook.)