-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
80 lines (71 loc) · 1.7 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
[project]
name = "graiax-fastapi"
version = "0.4.1"
description = "FastAPI launcher for GraiaCommunity."
authors = [
]
dependencies = [
"fastapi>=0.101.0",
"graia-amnesia>=0.8.2",
"graia-saya>=0.0.18",
"launart>=0.8.1",
]
requires-python = ">=3.9"
readme = "README.md"
license = { text = "MIT" }
classifiers = [
"Typing :: Typed",
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
[project.urls]
repository = "https://github.com/GraiaCommunity/graiax-fastapi"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool]
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"black>=23.7.0",
"graia-broadcast>=0.23.2",
"httpx>=0.24.1",
"isort>=5.12.0",
"pytest>=7.4.0",
"pytest-asyncio>=0.21.1",
"websockets>=11.0.3",
"creart>=0.3.0",
]
[tool.pdm.build]
package-dir = "src"
includes = ["src/graiax"]
[tool.black]
line-length = 120
target-version = ["py39", "py310", "py311"]
[tool.ruff]
line-length = 120
target-version = "py39"
select = [
# https://beta.ruff.rs/docs/rules
"E", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
# "I", # isort
# "D", # pydocstyle
"ASYNC", # flake8-async
]
exclude = [".git", ".venv", "__pypackages__", "dist"]
ignore = ["F401"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
asyncio_mode = "strict"
testpaths = ["./tests"]
python_files = ["test.py"]