misc: add black files/notes
This commit is contained in:
parent
d37357188d
commit
70398ec190
|
@ -0,0 +1,2 @@
|
|||
# trivial: apply black
|
||||
d37357188d49b5f7db11bc8e487caf620a666a85
|
|
@ -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.rst
10
README.rst
|
@ -42,6 +42,16 @@ Note that the SSH host key verification will fail unless the proper
|
|||
known_hosts file has been installed, or created by manually connecting
|
||||
to the git server.
|
||||
|
||||
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.)
|
||||
|
||||
Packaging
|
||||
---------
|
||||
|
||||
|
|
Loading…
Reference in New Issue