add black config

This commit is contained in:
Son NK 2019-12-22 11:57:16 +00:00
parent 83fa97b9ba
commit 27d288278a
2 changed files with 24 additions and 0 deletions

View File

@ -440,6 +440,12 @@ Here are a small sum-ups of the directory structure and their roles:
- templates/: contain both html and email templates.
- tests/: tests. We don't really distinguish unit, functional or integration test. A test is simply here to make sure a feature works correctly.
The code is formatted using https://github.com/psf/black, to format the code, simply run
```
black
```
### OAuth flow
SL currently supports code and implicit flow.

18
pyproject.toml Normal file
View File

@ -0,0 +1,18 @@
[tool.black]
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| migrations # migrations/ is generated by alembic
)/
)
'''