2024-01-09 19:25:55 +01:00

83 lines
1.9 KiB
TOML

[tool.poetry]
name = "fastapi-sqlalchemy-asyncpg"
version = "0.0.7"
description = ""
authors = ["Jakub Miazek <the@grillazz.com>"]
packages = []
license = "MIT"
[tool.poetry.dependencies]
python = "^3.11"
fastapi = "0.108.0"
pydantic = {version = "2.5.3", extras = ["email"]}
pydantic-settings = "2.1.0"
sqlalchemy = "2.0.25"
uvicorn = { version = "0.25.0", extras = ["standard"]}
asyncpg = "0.29.0"
alembic = "1.13.1"
httpx = "0.26.0"
pytest-cov = "4.1.0"
pytest-asyncio = "0.23.3"
uvloop = "0.19.0"
httptools = "0.6.1"
rich = "13.7.0"
pyjwt = {version = "2.8.0", extras = ["cryptography"]}
redis = "5.0.1"
passlib = {version = "^1.7.4", extras = ["bcrypt"]}
sourcery = "^1.15.0"
[tool.poetry.dev-dependencies]
devtools = { extras = ["pygments"], version = "*" }
safety = "*"
pyupgrade = "*"
ipython = "*"
ruff = "*"
psycopg2-binary = "*"
sqlacodegen = "3.0.0rc3"
[tool.poetry.group.dev.dependencies]
tryceratops = "^2.3.2"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
indent-width = 4
select = ["E", "F", "UP", "N", "C", "B"]
ignore = ["E501"]
# Exclude a variety of commonly ignored directories.
exclude = ["alembic",]
# Assume Python 3.10.
target-version = "py311"
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends",]
[tool.pytest.ini_options]
addopts = "-v --doctest-modules --doctest-glob=*.md --ignore=alembic"
asyncio_mode = "strict"
env_files = [".env"]
[tool.tryceratops]
exclude = ["alembic",]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"