-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
62 lines (56 loc) · 1.45 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
[project]
name = "statv"
version = "0.3.2"
description = "a uniform status implementation for graia project"
authors = [
{name = "GreyElaina", email = "GreyElaina@outlook.com"},
]
dependencies = []
requires-python = ">=3.8"
readme = "README.md"
license = {text = "MIT"}
[project.optional-dependencies]
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"mkdocstrings[python]~=0.19",
"mkdocs-section-index~=0.3",
"mkdocs-material~=8.5",
"black~=22.10",
"isort~=5.10",
"pytest~=7.1",
"pytest-asyncio~=0.19",
"coverage~=6.5",
]
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
[tool.coverage.run]
branch = true
source = ["."]
omit = ["test/*", "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
]