-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (78 loc) · 2.55 KB
/
pyproject.toml
File metadata and controls
89 lines (78 loc) · 2.55 KB
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
[project]
name = "pixel-battle"
version = "0.1.0"
description = "Simple backend for pixel battle"
authors = [
{name = "Alexander Smolin", email = "88573504+emptybutton@users.noreply.github.com"}
]
license = "Apache-2.0"
readme = "README.md"
classifiers = ["Private :: Do Not Upload"]
requires-python = "== 3.13.*"
dependencies = [
"uvicorn[standard] == 0.30.6",
"typenv == 0.2.0",
"dishka == 1.4.2",
"fastapi == 0.115.2",
"redis == 5.2.1",
"Pillow == 11.0.0",
"PyJWT == 2.10.1",
"click == 8.1.8",
]
[project.optional-dependencies]
dev = [
"mypy[faster-cache] == 1.15.0",
"ruff == 0.9.7",
"pytest == 8.3.4",
"pytest-asyncio == 0.25.3",
"pytest-cov == 6.0.0",
"dirty-equals == 0.8.0",
"httpx == 0.27.2",
"httpx-ws == 0.7.0",
]
prod = []
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.scripts]
admin-cli = "pixel_battle.deployment.admin_cli.__main__:main"
admin-service = "pixel_battle.deployment.admin_service.__main__:main"
chunk-reading-service = "pixel_battle.deployment.chunk_reading_service.__main__:main"
chunk-refresh-orchestrator = "pixel_battle.deployment.chunk_refresh_orchestrator.__main__:main"
chunk-refresh-worker = "pixel_battle.deployment.chunk_refresh_worker.__main__:main"
chunk-streaming-service = "pixel_battle.deployment.chunk_streaming_service.__main__:main"
chunk-writing-service = "pixel_battle.deployment.chunk_writing_service.__main__:main"
god-service = "pixel_battle.deployment.god_service.__main__:main"
showcase-service = "pixel_battle.deployment.showcase_service.__main__:main"
user-service = "pixel_battle.deployment.user_service.__main__:main"
[tool.uv]
cache-dir=".uv_cache"
[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 = ["N818", "RUF009", "UP018", "PLR6301", "PLR0913", "PLW0108", "TC006"]
[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/"]