-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (109 loc) · 2.31 KB
/
pyproject.toml
File metadata and controls
123 lines (109 loc) · 2.31 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[project]
name = "peekapi"
version = "0.3.1"
description = "A local API service for screen capture and audio recording"
readme = "README.md"
requires-python = ">=3.11"
authors = [{ name = "Misty", email = "xiao02600@gmail.com" }]
dependencies = [
"pillow>=11.1.0,<12.0.0",
"mss>=10.0.0,<11.0.0",
"fastapi>=0.115.0",
"uvicorn[standard]>=0.34.0",
"pystray>=0.19.5,<0.20.0",
"soundcard>=0.4.5,<0.5.0",
"soundfile>=0.13.0",
"numpy>=2.0.0,<2.3.0",
"msgspec>=0.20.0",
"loguru>=0.7.3",
]
[dependency-groups]
dev = [
"basedpyright>=1.16.0",
"commitizen>=4.1.0",
"git-cliff>=2.11.0,<3.0.0",
"prek>=0.2.0",
"ruff>=0.14.13,<1.0.0",
"pyinstaller>=6.12.0",
{ include-group = "test" },
]
test = [
"pytest>=8.0.0",
"pytest-cov>=7.0.0",
"pytest-xdist>=3.0.0",
"httpx>=0.28.0",
]
[project.urls]
Homepage = "https://github.com/Misty02600/PeekAPI"
[project.scripts]
peekapi = "peekapi.__main__:main"
[build-system]
requires = ["uv_build>=0.9.18,<0.10.0"]
build-backend = "uv_build"
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.3.1"
tag_format = "v$version"
version_files = ["pyproject.toml:^version"]
major_version_zero = true
[tool.coverage.run]
source = ["src/peekapi"]
omit = ["*/__pycache__/*", "*/tests/*"]
[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError",
"pragma: no cover",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@overload",
"except ImportError:",
]
[tool.pyright]
include = ["src", "tests"]
pythonVersion = "3.11"
pythonPlatform = "All"
typeCheckingMode = "standard"
[[tool.pyright.executionEnvironments]]
root = "tests"
reportPrivateUsage = "none"
reportUnknownMemberType = "none"
[tool.pytest]
addopts = ["--import-mode=importlib", "--strict-markers", "--tb=short", "-ra"]
testpaths = ["tests"]
pythonpath = ["src", "tests"]
[tool.ruff]
line-length = 88
src = ["src", "tests"]
[tool.ruff.format]
line-ending = "lf"
[tool.ruff.lint]
select = [
"F",
"W",
"E",
"I",
"B",
"UP",
"ASYNC",
"C4",
"T10",
"T20",
"PYI",
"PT",
"Q",
"TID",
"RUF",
]
ignore = [
"E501",
"E402",
"UP037",
"RUF001",
"RUF002",
"RUF003",
"W191",
"TID252",
"B008",
]
[tool.ruff.lint.isort]
extra-standard-library = ["typing_extensions"]