-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
69 lines (59 loc) · 1.6 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
[tool.poetry]
name = "pixel-battle"
version = "0.1.0"
description = "Simple backend for pixel battle"
authors = ["emptybutton <88573504+emptybutton@users.noreply.github.com>"]
license = "Apache-2.0"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.13"
typenv = "^0.2.0"
dishka = "^1.4.0"
fastapi = "^0.115.2"
uvicorn = "^0.30.6"
redis = "^5.2.1"
Pillow = "^11.0.0"
PyJWT = "^2.10.1"
[tool.poetry.group.dev.dependencies]
mypy = {extras = ["faster-cache"], version = "^1.13.0"}
ruff = "^0.7.2"
pytest = "^8.3.2"
pytest-asyncio = "^0.25.0"
pytest-cov = "^6.0.0"
dirty-equals = "^0.8.0"
httpx = "^0.27.2"
httpx-ws = "^0.7.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
strict = true
no_namespace_packages = true
allow_redefinition = true
[tool.ruff]
src = ["src"]
preview = true
line-length = 80
indent-width = 4
[tool.ruff.lint]
select = [
"ANN", "F", "W", "E", "B", "C90", "N", "UP", "YTT", "ASYNC", "PL", "RUF",
"Q", "RET", "SLF", "SLOT", "SIM", "TID252", "TCH", "ARG", "PTH", "ERA", "TRY",
"PERF", "INP", "I", "S", "FAST", "TID", "TCH", "INT"
]
ignore = [
"ANN101", "ANN102", "N818", "RUF009", "UP018", "PLR6301", "PLR0913", "PLW0108"
]
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff.lint.per-file-ignores]
"src/pixel_battle/entities/*" = ["PLR2004"]
"src/pixel_battle/application/interactors/*" = ["PLR0917"]
"tests/*" = ["S101", "PLR0124", "PLR0917", "S106", "C901"]
[tool.pytest.ini_options]
pythonpath = ["src"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
[tool.coverage.run]
branch = true
source = ["src/"]