-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
72 lines (62 loc) · 1.26 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
[project]
name = "zibai-server"
version = "0.13.0"
description = "A modern high-performance Python WSGI server."
authors = [
{name = "abersheeran", email = "me@abersheeran.com"},
]
dependencies = [
"h11>=0.14.0",
]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "Apache-2.0"}
[project.urls]
repository = "https://github.com/abersheeran/zibai"
[project.optional-dependencies]
gevent = [
"gevent>=23.9.1",
]
reload = [
"watchdog>=3.0.0",
]
[project.scripts]
zibai = "zibai.__main__:command_line"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.dev-dependencies]
benchmark = [
"waitress>=2.1.2",
"gunicorn>=21.2.0",
]
test = [
"pytest>=7.4.3",
"pytest-cov>=4.1.0",
]
[tool.pdm.scripts]
format = "ruff format ."
lint = "ruff check ."
test = "pytest --cov=src/zibai"
[tool.ruff.lint]
ignore = ["E731"]
extend-select = ["I"]
[tool.coverage]
ignores = [
"raise NotImplementedError"
]
[tool.coverage.run]
omit = ["*/.venv/*", "*/tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if False:",
"assert False",
"if typing.TYPE_CHECKING:",
"if TYPE_CHECKING:",
"pass",
"\\.\\.\\.",
]
show_missing = true
skip_covered = true