-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
69 lines (60 loc) · 1.71 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
[project]
# PEP 621 project metadata
# See https://www.python.org/dev/peps/pep-0621/
authors = [{ name = "GreyElaina", email = "[email protected]" }]
license = { text = "MIT" }
requires-python = ">=3.8,<4.0"
dependencies = [
"typing-extensions>=3.10.0; python_version < \"3.9\"",
"creart~=0.3.0",
]
name = "graia-broadcast"
version = "0.24.0"
description = "a highly customizable, elegantly designed event system based on asyncio"
[tool.pdm.build]
includes = ["src/graia"]
[tool.pdm.dev-dependencies]
dev = [
"black<23.0.0,>=22.1.0",
"pre-commit",
"flake8<5.0.0,>=4.0.1",
"isort<6.0.0,>=5.10.1",
"pytest<8.0.0,>=7.0.1",
"coverage<7.0.0,>=6.3.2",
"pytest-asyncio<1.0.0,>=0.18.2",
]
[project.entry-points."creart.creators"]
broadcast = "graia.broadcast.creator:BroadcastCreator"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
[tool.coverage.run]
branch = true
omit = ["*/test/*"]
[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
]
[tool.pyright]
pythonVersion = "3.7"