-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
66 lines (59 loc) · 1.28 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
[project]
# PEP 621 project metadata
# See https://www.python.org/dev/peps/pep-0621/
name = "graia-amnesia"
version = "0.9.0"
authors = [
{name = "GreyElaina", email = "[email protected]"},
]
requires-python = ">=3.8,<4.0"
license = {text = "MIT"}
dependencies = [
"launart>=0.7.0,<1.0.0",
"typing-extensions>=4.0.0",
]
readme = "README.md"
description = "a collection of shared components for graia"
[project.optional-dependencies]
asgi = [
"uvicorn>=0.23.2",
]
httpx = [
"httpx>=0.26.0",
]
aiohttp = [
"aiohttp>=3.9.1",
]
sqla = [
"sqlalchemy>=2.0.25",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.isort]
profile = "black"
line_length = 120
skip_gitignore = true
force_sort_within_sections = false
extra_standard_library = ["typing_extensions"]
[tool.black]
line_length = 120
target-version = ["py38", "py39", "py310", "py311"]
include = '\.pyi?$'
extend-exclude = '''
'''
[tool.pdm.build]
includes = ["src/graia"]
[tool.pdm.dev-dependencies]
dev = [
"black<23.0.0,>=22.1.0",
"uvicorn>=0.23.2",
"aiohttp>=3.9.1",
"httpx>=0.26.0",
"sqlalchemy>=2.0.25",
"isort>=5.13.2",
"pytest>=7.4.4",
]
[tool.pdm.scripts]
test = "pytest -v ./tests/"
format = { composite = ["isort ./src/ ./tests/","black ./src/ ./tests/"] }