-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
96 lines (81 loc) · 2.05 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
90
91
92
93
94
95
96
[tool.poetry]
name = "csp0"
version = "0.1.0a1"
description = "chat side project type 0"
authors = ["DPR <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.11"
pyjwt = {extras = ["crypto"], version = "^2.8.0"}
uvicorn = {extras = ["standard"], version = "^0.23.2"}
fastapi = "^0.103.2"
redis = {extras = ["hiredis"], version = "^5.0.1"}
pydantic-settings = "^2.0.3"
tortoise-orm = {extras = ["asyncpg"], version = "^0.23.0"}
[tool.poetry.group.dev.dependencies]
mypy = "^1.5.1"
ruff = "^0.1.5"
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
pytest-asyncio = "^0.21.1"
pre-commit = "^3.3.3"
aerich = "^0.7.2"
testcontainers-postgres = "^0.0.1rc1"
testcontainers-redis = "^0.0.1rc1"
commitizen = "^3.7.0"
httpx = "^0.25.0"
types-redis = "^4.6.0.7"
asgi-lifespan = "^2.1.0"
asyncpg-stubs = "^0.30.0"
[tool.aerich]
tortoise_orm = "db.settings.TORTOISE_ORM"
location = "./migrations"
src_folder = "./."
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)
'''
[tool.pytest.ini_options]
filterwarnings = ["ignore:::tortoise.contrib.test"]
asyncio_mode = "auto"
[tool.coverage.run]
branch = true
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
[tool.commitizen]
update_changelog_on_bump = true
version_provider = "poetry"