misc: add black files/notes
This commit is contained in:
parent
11fe0141d6
commit
608cc8e61b
|
@ -0,0 +1,3 @@
|
||||||
|
# black
|
||||||
|
0856ac758fb7bc97ec089ca8bd1395379028fa66
|
||||||
|
11fe0141d6981f048bceb8977af8a9eb5bbfe430
|
|
@ -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
|
@ -28,6 +28,17 @@ local_settings.py file set in the same directory, or by a file referenced
|
||||||
in the SCRUTINY_SETTINGS_FILE environment variable.
|
in the SCRUTINY_SETTINGS_FILE environment variable.
|
||||||
|
|
||||||
|
|
||||||
|
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
|
License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue