flamingo-run/sanic-rest

View on GitHub
pyproject.toml

Summary

Maintainability
Test Coverage
[tool.poetry]
name = "sanic-rest"
version = "1.9.0"
description = "Sanic Rest Framework with Google Cloud Datastore"
authors = ["Joao Daher <joao@daher.dev>"]
repository = "https://github.com/flamingo-run/sanic-rest"
readme = "README.md"
keywords = ["sanic", "restful", "datastore"]
packages = [
    { include = "sanic_rest" },
]


[tool.poetry.dependencies]
python = ">=3.11,<3.13"
sanic = "*"
sanic-openapi = "*"
gcp-pilot = { version = "*", extras = ["datastore", "storage"]}
sanic-jwt = { version = "*", optional = true }
passlib = { version = "*", optional = true }
argon2_cffi = { version = "*", optional = true }

[tool.poetry.extras]
auth = ["sanic-jwt", "passlib", "argon2_cffi"]

[tool.poetry.dev-dependencies]
ruff = "*"
safety = "*"
coverage = "*"
pytest = "*"
pytest-cov = "*"
pytest-rerunfailures = "*"
pytest-xdist = "*"
pytest-sugar = "*"
pytest-random-order = "*"
pytest-timeout = "*"


[tool.ruff]
line-length = 120
target-version = "py312"

[tool.ruff.lint]
select = ["RUF", "I", "PL", "F", "UP", "T10", "T20", "DTZ", "SIM", "TID", "PTH", "ERA", "TRY"]
ignore = ["PLR2004", "PLR0911", "PLR0913", "TRY003", "RUF012"]

[tool.ruff.lint.isort]
known-first-party = ["sanic_rest", "tests"]


[tool.pytest.ini_options]
addopts = "-n auto --reruns 1 --random-order --cov"
python_files = ["tests_*.py"]


[tool.coverage.run]
branch = true
source = ["sanic_rest"]


[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"