Skip to content

Commit 457a343

Browse files
committed
update
1 parent d6f8373 commit 457a343

File tree

6 files changed

+492
-26
lines changed

6 files changed

+492
-26
lines changed

pyproject.toml

Lines changed: 142 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,146 @@
11
[project]
2-
name = "whisper-cpp-py"
2+
name = "whispercpppy"
33
version = "0.1.0"
4-
description = "Add your description here"
4+
description = ""
5+
authors = [{ name = "zigai", email = "[email protected]" }]
56
readme = "README.md"
67
requires-python = ">=3.12"
7-
dependencies = ["pydantic>=2.11.9"]
8+
dependencies = ["pydantic>=2.11.9", "requests>=2.32.5"]
9+
classifiers = []
10+
keywords = []
11+
12+
13+
[build-system]
14+
requires = ["hatchling"]
15+
build-backend = "hatchling.build"
16+
17+
[tool.hatch.build.targets.wheel]
18+
packages = ["whispercpppy"]
19+
20+
[tool.black]
21+
line-length = 100
22+
target_version = ['py312', 'py313']
23+
24+
[tool.ruff]
25+
line-length = 100
26+
27+
[tool.ruff.lint]
28+
isort = { known-first-party = ["whispercpppy"] }
29+
pydocstyle = { convention = 'google' }
30+
31+
exclude = [
32+
".bzr",
33+
".direnv",
34+
".eggs",
35+
".git",
36+
".hg",
37+
".mypy_cache",
38+
".nox",
39+
".pants.d",
40+
".pytype",
41+
".ruff_cache",
42+
".svn",
43+
".tox",
44+
".venv",
45+
"__pypackages__",
46+
"_build",
47+
"buck-out",
48+
"build",
49+
"dist",
50+
"node_modules",
51+
"venv",
52+
"tests/*",
53+
"tests/**/*",
54+
]
55+
56+
[tool.ruff.lint.per-file-ignores]
57+
"__init__.py" = [
58+
"F401", # Unused import
59+
"E402", # Module import not at top of file
60+
]
61+
select = [
62+
"F", # Pyflakes
63+
"E", # Pycodestyle (Error)
64+
'I', # isort
65+
'D', # pydocstyle
66+
'UP', # pyupgrade
67+
'YTT', # flake8-2020
68+
'B', # flake8-bugbear
69+
"PLE", # pylint
70+
'PYI006', # flake8-pyi
71+
'PYI019', # flake8-pyi
72+
'PYI024', # flake8-pyi
73+
'PYI030', # flake8-pyi
74+
'PYI062', # flake8-pyi
75+
'PYI063', # flake8-pyi
76+
'PYI066', # flake8-pyi
77+
"RUF001",
78+
"RUF002",
79+
"RUF003",
80+
"RUF005",
81+
"RUF006",
82+
"RUF012",
83+
"RUF013",
84+
"RUF016",
85+
"RUF017",
86+
"RUF018",
87+
"RUF019",
88+
"RUF020",
89+
"RUF021",
90+
"RUF024",
91+
"RUF026",
92+
"RUF030",
93+
"RUF032",
94+
"RUF033",
95+
"RUF034",
96+
"TRY002",
97+
"TRY004",
98+
"TRY201",
99+
"TRY300",
100+
"TRY301",
101+
"TRY400",
102+
"PERF101",
103+
"RET503",
104+
"LOG001",
105+
"LOG002",
106+
]
107+
ignore = [
108+
"D100",
109+
"D101",
110+
"D102",
111+
"D103",
112+
"D104",
113+
'D105',
114+
'D106',
115+
'D107',
116+
'D205',
117+
"D212",
118+
'D415',
119+
'E501',
120+
'B011',
121+
'B028',
122+
'B904',
123+
'PIE804',
124+
"N802",
125+
"N803",
126+
"N806",
127+
"UP007",
128+
"UP038",
129+
"E741",
130+
]
131+
132+
[tool.ruff.format]
133+
quote-style = "double"
134+
indent-style = "space"
135+
skip-magic-trailing-comma = false
136+
line-ending = "auto"
137+
138+
[tool.hatch.envs.test]
139+
features = ["test"]
140+
installer = "uv"
141+
142+
[[tool.hatch.envs.test.matrix]]
143+
python = ["3.12", "3.13"]
144+
145+
[tool.hatch.envs.test.scripts]
146+
test = "pytest -v"

0 commit comments

Comments
 (0)