-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
83 lines (76 loc) · 2.04 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
[project]
name = "nanapi"
version = "0.1.0"
description = "FastAPI + EdgeDB backend for Nana-chan"
readme = "README.md"
license = "MIT"
authors = [
{ name = "NextFire", email = "[email protected]" },
{ name = "odrling", email = "[email protected]" },
{ name = "Pierre Jeanjean", email = "[email protected]" },
]
requires-python = ">=3.12"
dependencies = [
"edgedb==2.2.0",
"fastapi==0.115.5",
"pydantic==2.10.2",
"aiohttp[speedups]==3.11.8",
# https://github.com/PyYoshi/cChardet/issues/81
"faust-cchardet==2.1.19",
"orjson==3.10.12",
"toolz==1.0.0",
"backoff==2.2.1",
"meilisearch-python-sdk==3.6.2",
"numpy==2.1.3",
"pillow==11.0.0",
"rich==13.9.4",
"discord-webhook[async]==1.3.1",
"python-multipart==0.0.18",
"passlib[bcrypt]==1.7.4",
"cachetools==5.5.0",
"asyncache==0.3.1",
"hypercorn==0.17.3",
"tzdata==2024.2",
"pyjwt==2.10.1",
"ics==0.7.2",
]
[dependency-groups]
dev = [
"pyright==1.1.389",
"ruff==0.8.1",
"uvicorn==0.32.1",
"edgedb-pydantic-codegen==2024.10.6",
"pyinstrument==5.0.0",
]
[project.urls]
homepage = "https://github.com/Japan7/mahou.py"
[tool.pyright]
pythonVersion = "3.12"
reportDeprecated = true
ignore = ["nanapi/nanachan_v2_migrate.py"]
[tool.ruff]
line-length = 99
exclude = ["nanapi/nanachan_v2_migrate.py"]
[tool.ruff.lint]
select = ["E", "F", "W", "B", "SIM", "I"]
ignore = [
# lambda expressions
"E731",
# ambiguous variable name
"E741",
# Do not perform function calls in argument defaults
"B008",
# Within an except clause, raise exceptions with `raise ... from err` or `raise ... from None`
"B904",
# `zip()` without an explicit `strict=` parameter
"B905",
# Use `contextlib.suppress(asyncio.CancelledError)` instead of try-except-pass
"SIM105",
# Use ternary operator `{contents}` instead of if-else-block
"SIM108",
]
[tool.ruff.lint.per-file-ignores]
"nanapi/database/*" = ["E501"]
"nanapi/*local_settings.py" = ["E501"]
[tool.ruff.format]
quote-style = "single"