-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
88 lines (77 loc) · 1.9 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
84
85
86
87
88
[project]
name = "launart"
version = "0.8.2"
description = "Component lifetime manager for runtime."
authors = [
{name = "GreyElaina", email = "[email protected]"},
]
dependencies = [
"statv>=0.2.2",
"loguru>=0.6.0",
"creart>=0.3.0",
]
requires-python = ">=3.8"
readme = "README.md"
license = {text = "MIT"}
[project.optional-dependencies]
saya = [
"graia-saya>=0.0.16",
]
[project.entry-points."creart.creators"]
launart = "launart.creator:LaunartCreator"
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
[tool.coverage.run]
branch = true
source = ["."]
omit = ["tests/*", "test.py"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# standard pragma
"pragma: no cover",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
"if (typing\\.)?TYPE_CHECKING( is True)?:",
"\\.\\.\\.",
"pass",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
# Don't complain overload method / functions
"@(typing\\.)?overload",
# don't complain __repr__ and __str__ and __repr_args__ for representation
"def __repr__",
"def __str__",
"def __repr_args__",
"except ImportError:", # Don't complain about import fallback
]
partial_branches = [
"pragma: worst case"
]
precision = 2
[tool.pdm]
[tool.pdm.scripts]
test = {composite = ["coverage run -m pytest", "coverage xml", "coverage report"]}
[tool.pdm.dev-dependencies]
dev = [
"richuru>=0.1.0",
"black>=22.6.0",
"isort>=5.10.1",
"graia-saya~=0.0",
"coverage~=6.4",
"pytest~=7.1",
"pytest-asyncio~=0.19",
"graia-broadcast>=0.22.1",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pyright]
exclude = ["__pypackages__"]
[tool.pytest.ini_options]
python_files = "tests/*"
asyncio_mode = "strict"
norecursedirs = "_saya_mod"