-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
93 lines (78 loc) · 2.06 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
[tool.poetry]
name = "randorm-api"
version = "0.0.0"
description = "Server-side of Randorm"
authors = [
"Anton Kudryavtsev <[email protected]>",
"Egor Machnev <[email protected]>",
]
readme = "readme.md"
keywords = ["api", "graphql", "telegram", "randorm"]
package-mode = false
[tool.poetry.dependencies]
python = "^3.12"
pydantic = "^2.7.4"
pydantic-extra-types = "^2.8.1"
beanie = "^1.26.0"
pymongo = "^4.7.3"
aiohttp = "^3.9.5"
pyjwt = "^2.8.0"
python-dotenv = "^1.0.1"
starlette = "^0.37.2"
loguru = "^0.7.2"
redis = { extras = ["hiredis"], version = "^5.0.7" }
strawberry-graphql = { extras = ["debug-server"], version = "^0.236.0" }
gunicorn = "^22.0.0"
ujson = "^5.10.0"
aiogram = "^3.10.0"
[tool.poetry.group.dev.dependencies]
black = "^24.4.2" # formatter
ruff = "^0.4.8" # linter
isort = "^5.13.2" # imports sorter
ipython = "^8.25.0" # interactive shell
bandit = "^1.7.9" # security checker
pre-commit = "^3.7.1"
mypy = "^1.10.0"
pyright = "^1.1.371"
icecream = "^2.1.3"
[tool.poetry.group.test.dependencies]
pytest = "^8.2.2"
pytest-sugar = "^1.0.0"
pytest-cov = "^5.0.0"
pytest-async = "^0.1.1"
pytest-aio = "^1.8.1"
pytest-xdist = "^3.6.1"
polyfactory = "^2.16.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
pythonpath = ["."]
[tool.pyright]
venvPath = "." # pyright lsp support
venv = ".venv"
[tool.ruff]
exclude = [".mypy_cache", ".ruff_cache", ".venv", "venv", "build", "dist"]
line-length = 88
indent-width = 4
target-version = "py312"
fix = true
[tool.ruff.lint]
select = ["E", "F", "Q", "B", "I", "UP", "C"]
ignore = []
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"**/{tests,docs,tools}/*" = ["E402"]
[tool.ruff.lint.flake8-bandit]
check-typed-exception = true
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.pycodestyle]
max-line-length = 120
[tool.ruff.lint.isort]
case-sensitive = true
force-single-line = false
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = []