добавил файлики flake8 и black

This commit is contained in:
Андрей Дувакин 2024-04-22 22:12:26 +05:00
parent 85a0332bff
commit a0509b3351
2 changed files with 34 additions and 0 deletions

24
.flake8 Normal file
View File

@ -0,0 +1,24 @@
[flake8]
max-line-length = 80
import-order-style = google
application-import-names = timetable, tickets, home, films
exclude =
.git,
__pycache__,
.venv,
venv,
*/migrations/,
*/.venv/,
*/venv/,
.prod,
.dev,
.test,
tvenv
plugins =
flake8-commas
flake8-import-order
flake8-return
flake8-quotes
flake8-clean-block
flake8-expression-complexity
flake8-bugbear

10
pyproject.toml Normal file
View File

@ -0,0 +1,10 @@
[tool.black]
line-length = 79
exclude = '''
venv/
.git/
migrations/
.dev/
.prod/
.test/
'''