2020-04-19 00:27:48 +03:00
|
|
|
[tool.poetry]
|
|
|
|
name = "app"
|
|
|
|
version = "0.1.0"
|
|
|
|
description = ""
|
|
|
|
authors = ["Admin <admin@example.com>"]
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2023-11-24 23:48:21 +01:00
|
|
|
python = "^3.10"
|
2024-03-11 19:45:10 +02:00
|
|
|
uvicorn = {extras = ["standard"], version = "^0.24.0.post1"}
|
2024-03-12 17:05:48 +01:00
|
|
|
fastapi = "^0.109.1"
|
2024-03-12 17:32:21 +01:00
|
|
|
python-multipart = "^0.0.7"
|
2023-11-24 23:48:21 +01:00
|
|
|
email-validator = "^2.1.0.post1"
|
|
|
|
passlib = {extras = ["bcrypt"], version = "^1.7.4"}
|
|
|
|
tenacity = "^8.2.3"
|
2024-02-28 17:24:24 -05:00
|
|
|
pydantic = ">2.0"
|
2023-11-24 23:48:21 +01:00
|
|
|
emails = "^0.6"
|
2020-04-19 00:27:48 +03:00
|
|
|
|
2024-04-27 19:23:14 -05:00
|
|
|
gunicorn = "^22.0.0"
|
2024-05-14 15:43:04 -07:00
|
|
|
jinja2 = "^3.1.4"
|
2023-11-24 23:48:21 +01:00
|
|
|
alembic = "^1.12.1"
|
|
|
|
httpx = "^0.25.1"
|
|
|
|
psycopg = {extras = ["binary"], version = "^3.1.13"}
|
2024-02-17 21:29:15 +01:00
|
|
|
sqlmodel = "^0.0.16"
|
2024-02-25 10:04:47 -05:00
|
|
|
# Pin bcrypt until passlib supports the latest
|
|
|
|
bcrypt = "4.0.1"
|
2024-02-28 17:24:24 -05:00
|
|
|
pydantic-settings = "^2.2.1"
|
2024-03-07 11:35:33 -05:00
|
|
|
sentry-sdk = {extras = ["fastapi"], version = "^1.40.6"}
|
2024-05-15 10:48:57 -05:00
|
|
|
pyjwt = "^2.8.0"
|
2023-11-24 23:48:21 +01:00
|
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
pytest = "^7.4.3"
|
2024-02-25 19:29:00 +01:00
|
|
|
mypy = "^1.8.0"
|
|
|
|
ruff = "^0.2.2"
|
|
|
|
pre-commit = "^3.6.2"
|
2024-03-10 14:47:21 -05:00
|
|
|
types-passlib = "^1.7.7.20240106"
|
2024-03-13 18:57:19 -05:00
|
|
|
coverage = "^7.4.3"
|
2020-04-19 00:27:48 +03:00
|
|
|
|
|
|
|
[build-system]
|
|
|
|
requires = ["poetry>=0.12"]
|
|
|
|
build-backend = "poetry.masonry.api"
|
2024-02-25 19:29:00 +01:00
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
strict = true
|
2024-04-06 00:15:34 +04:00
|
|
|
exclude = ["venv", ".venv", "alembic"]
|
2024-02-25 19:29:00 +01:00
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
target-version = "py310"
|
2024-03-26 21:35:14 -05:00
|
|
|
exclude = ["alembic"]
|
2024-02-25 19:29:00 +01:00
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
select = [
|
|
|
|
"E", # pycodestyle errors
|
|
|
|
"W", # pycodestyle warnings
|
|
|
|
"F", # pyflakes
|
|
|
|
"I", # isort
|
|
|
|
"B", # flake8-bugbear
|
|
|
|
"C4", # flake8-comprehensions
|
|
|
|
"UP", # pyupgrade
|
2024-04-05 22:05:28 +02:00
|
|
|
"ARG001", # unused arguments in functions
|
2024-02-25 19:29:00 +01:00
|
|
|
]
|
|
|
|
ignore = [
|
|
|
|
"E501", # line too long, handled by black
|
|
|
|
"B008", # do not perform function calls in argument defaults
|
|
|
|
"W191", # indentation contains tabs
|
|
|
|
"B904", # Allow raising exceptions without from e, for HTTPException
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.ruff.lint.pyupgrade]
|
|
|
|
# Preserve types, even if a file imports `from __future__ import annotations`.
|
|
|
|
keep-runtime-typing = true
|