-
Notifications
You must be signed in to change notification settings - Fork 57
/
pyproject.toml
89 lines (75 loc) · 2.17 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[tool.poetry]
name = "fastapi-sqlalchemy-asyncpg"
version = "0.0.16"
description = ""
authors = ["Jakub Miazek <[email protected]>"]
packages = []
license = "MIT"
[tool.poetry.dependencies]
python = "^3.12"
fastapi = {version = "^0.115.2", extras = ["all"]}
pydantic = {version = "^2.9.2", extras = ["email"]}
pydantic-settings = "^2.6.0"
sqlalchemy = "^2.0.36"
uvicorn = { version = "^0.32.0", extras = ["standard"]}
asyncpg = "^0.29.0"
alembic = "^1.13.3"
httpx = "^0.27.2"
pytest = "^8.3.3"
pytest-cov = "^5.0.0"
uvloop = "^0.21.0"
httptools = "^0.6.4"
rich = "^13.9.2"
pyjwt = {version = "^2.9.0", extras = ["cryptography"]}
redis = "^5.1.1"
bcrypt = "^4.2.0"
polars = "^1.9.0"
python-multipart = "^0.0.12"
fastexcel = "^0.12.0"
fastapi-cache2 = {git = "https://github.com/yoco-tech/fastapi-cache.git", rev = "main"}
inline-snapshot = "^0.13.3"
dirty-equals = "^0.8.0"
polyfactory = "^2.17.0"
granian = "^1.6.1"
transformers = "^4.45.2"
apscheduler = {version = "^4.0.0a5", extras = ["redis,sqlalchemy"]}
[tool.poetry.group.dev.dependencies]
devtools = { extras = ["pygments"], version = "^0.12.2" }
safety = "*"
pyupgrade = "*"
ipython = "^8.26.0"
ruff = "^0.6.1"
sqlacodegen = "^3.0.0rc5"
tryceratops = "^2.3.3"
locust = "^2.31.3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
indent-width = 4
lint.select = ["E", "F", "UP", "N", "C", "B"]
lint.ignore = ["E501"]
# Exclude a variety of commonly ignored directories.
exclude = ["alembic",]
# Assume Python 3.12
target-version = "py312"
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.lint.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"