misc: add black files/notes
This commit is contained in:
parent
7a234d5fe7
commit
b603bd3139
|
@ -0,0 +1,2 @@
|
|||
# trivial: apply black
|
||||
7a234d5fe7ae6bee3ba1d0f688967e8e6cf209e3
|
|
@ -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']
|
11
README
11
README
|
@ -21,6 +21,17 @@ And appropriate django-mellon parameters (MELLON_PUBLIC_KEYS,
|
|||
MELLON_PRIVATE_KEY, MELLON_IDENTITY_PROVIDERS).
|
||||
|
||||
|
||||
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.)
|
||||
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
|
|
Loading…
Reference in New Issue