-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
93 lines (82 loc) · 1.84 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
89
90
91
92
93
[project]
name = "kui"
version = "1.8.1"
description = "An easy-to-use web framework."
authors = [{ name = "abersheeran", email = "[email protected]" }]
dependencies = [
"baize>=0.20.0",
"pydantic>=1.10",
"typing-extensions>=4.2.0",
]
requires-python = ">=3.7,<4.0"
readme = "README.md"
license = { text = "Apache-2.0" }
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
]
[project.urls]
homepage = "https://github.com/abersheeran/kui"
repository = "https://github.com/abersheeran/kui"
documentation = "https://kui.aber.sh"
[tool.pdm]
[tool.pdm.scripts]
format = "ruff format {args}"
lint-ruff = "ruff --fix {args}"
lint = { composite = [
"lint-ruff kui tests",
"format kui tests",
"check",
] }
check-ruff = "ruff check {args}"
check-mypy = "mypy {args}"
check = { composite = [
"check-ruff kui tests",
"check-mypy kui tests",
] }
test = "pytest {args}"
[tool.pdm.dev-dependencies]
dev = [
"mypy>=1.0.0",
"ruff>=0.0.270",
]
test = [
"async-asgi-testclient>=1.4.11",
"pytest>=7.2.1",
"pytest-asyncio>=0.20.3",
"pytest-cov>=4.0.0",
"httpx>=0.23.3",
]
[tool.pdm.build]
includes = ["kui"]
[tool.mypy]
ignore_missing_imports = true
[tool.isort]
profile = "black"
[tool.ruff]
ignore = [
"E501",
"E731",
]
[tool.ruff.lint]
select = ["I"]
[tool.coverage.run]
omit = ["*/.venv/*", "*/tests/*", "kui/status.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"return NotImplemented",
"if False:",
"assert False",
"if typing.TYPE_CHECKING:",
"if TYPE_CHECKING:",
"pass",
"\\.\\.\\.",
]
show_missing = true
skip_covered = true
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"