misc: add black files/notes
This commit is contained in:
parent
5481a73269
commit
a6b8c2adb5
|
@ -0,0 +1,2 @@
|
|||
# trivial: apply black
|
||||
5481a73269fb5a7f936144692939d9be1059976f
|
|
@ -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']
|
10
README
10
README
|
@ -19,6 +19,16 @@ And in settings.py:
|
|||
NANTERRE_PAYMENT_RESULT_PAGE = '/url/to/payment/page'
|
||||
|
||||
|
||||
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