mirror of
https://github.com/flibusta-apps/telegram_files_server.git
synced 2025-12-06 12:35:39 +01:00
80 lines
1.8 KiB
TOML
80 lines
1.8 KiB
TOML
[tool.poetry]
|
|
name = "fastapi_file_server"
|
|
version = "0.1.0"
|
|
description = ""
|
|
authors = ["Kurbanov Bulat <kurbanovbul@gmail.com>"]
|
|
license = "Apache 2.0"
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.11"
|
|
fastapi = "^0.92.0"
|
|
uvicorn = {extras = ["standard"], version = "^0.20.0"}
|
|
ormar = {extras = ["postgresql"], version = "^0.12.1"}
|
|
alembic = "^1.9.4"
|
|
pydantic = {extras = ["dotenv"], version = "^1.10.4"}
|
|
python-multipart = "^0.0.5"
|
|
httpx = "^0.23.3"
|
|
telethon = "^1.27.0"
|
|
prometheus-fastapi-instrumentator = "^5.9.1"
|
|
uvloop = "^0.17.0"
|
|
gunicorn = "^20.1.0"
|
|
orjson = "^3.8.6"
|
|
sentry-sdk = "^1.15.0"
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
pytest = "^7.2.0"
|
|
mypy = "^0.991"
|
|
pre-commit = "^2.21.0"
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=1.0.0"]
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
[tool.black]
|
|
include = '\.pyi?$'
|
|
exclude = '''
|
|
/(
|
|
\.git
|
|
| \.vscode
|
|
| \venv
|
|
| alembic
|
|
)/
|
|
'''
|
|
|
|
[tool.ruff]
|
|
fix = true
|
|
target-version = "py311"
|
|
src = ["fastapi_file_server"]
|
|
line-length=88
|
|
ignore = []
|
|
select = ["B", "C", "E", "F", "W", "B9", "I001"]
|
|
exclude = [
|
|
# No need to traverse our git directory
|
|
".git",
|
|
# There's no value in checking cache directories
|
|
"__pycache__",
|
|
# The conf file is mostly autogenerated, ignore it
|
|
"fastapi_file_server/app/alembic",
|
|
]
|
|
|
|
[tool.ruff.flake8-bugbear]
|
|
extend-immutable-calls = ["fastapi.File", "fastapi.Form", "fastapi.Security"]
|
|
|
|
[tool.ruff.mccabe]
|
|
max-complexity = 15
|
|
|
|
[tool.ruff.isort]
|
|
known-first-party = ["core", "app"]
|
|
force-sort-within-sections = true
|
|
|
|
# only_sections = true
|
|
# force_sort_within_sections = true
|
|
# lines_after_imports = 2
|
|
# lexicographical = true
|
|
# sections = ["FUTURE", "STDLIB", "BASEFRAMEWORK", "FRAMEWORKEXT", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
|
|
# known_baseframework = ["fastapi",]
|
|
# known_frameworkext = ["starlette",]
|
|
|
|
[tool.ruff.pyupgrade]
|
|
keep-runtime-typing = true
|