mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 12:41:29 +02:00
add black config
This commit is contained in:
parent
83fa97b9ba
commit
27d288278a
@ -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
18
pyproject.toml
Normal 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
|
||||
)/
|
||||
)
|
||||
'''
|
Loading…
Reference in New Issue
Block a user