-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
63 lines (49 loc) · 1.43 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[tool.poetry]
name = "sanic-rest"
version = "1.9.0"
description = "Sanic Rest Framework with Google Cloud Datastore"
authors = ["Joao Daher <[email protected]>"]
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"