-
Notifications
You must be signed in to change notification settings - Fork 245
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (78 loc) · 2.38 KB
/
pyproject.toml
File metadata and controls
90 lines (78 loc) · 2.38 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
[project]
name = "voicevox_engine"
version = "0.24.0" # TODO: できればversionを自動管理する
requires-python = "==3.11.9"
dependencies = [
"fastapi-slim>=0.115.5",
"jinja2>=3.1.3", # NOTE: required by fastapi.templating.Jinja2Templates (fastapi-slim's unmanaged dependency)
"kanalizer>=0.1.1",
"numpy>=2.2.3",
"platformdirs>=4.2.0",
"psutil>=7.1.1",
"pydantic>=2.7.3",
"pyopenjtalk",
"python-multipart>=0.0.20", # NOTE: required by fastapi.Form (fastapi-slim's unmanaged dependency)
"pyworld>=0.3.5",
"pyyaml>=6.0.1",
"semver>=3.0.0",
"setuptools<82", # NOTE: pyworldがpkg_resourcesを使っている。
"soundfile>=0.13.1",
"soxr>=0.5.0",
"starlette>=0.45.3",
"uvicorn>=0.34.0",
]
[tool.uv]
default-groups = []
[tool.uv.sources]
pyopenjtalk = { git = "https://github.com/VOICEVOX/pyopenjtalk", rev = "74703b034dd90a1f199f49bb70bf3b66b1728a86" }
[dependency-groups]
build = [
"pyinstaller>=6.17.0",
]
dev = [
"coveralls>=4.0.1",
"httpx>=0.28.1", # NOTE: required by fastapi.testclient.TestClient (fastapi-slim's unmanaged dependency)
"mypy>=1.10.0",
"pip-audit>=2.7.3",
"pre-commit>=4.0.1",
"pytest>=8.2.0",
"ruff>=0.11.1",
"syrupy>=4.6.1",
"types-pyyaml>=6.0.12",
"typos>=1.31.1",
]
licenses = [
"pip-licenses>=5.5.1",
]
[tool.ruff]
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "B", "I", "W", "UP", "D", "D213", "PT", "NPY"]
ignore = [
"E501", # line-too-long
"D400", # missing-trailing-period。日本語の「。」に対応していないため。
"D403", # first-word-uncapitalized。日本語とは無関係であるため。日英混合時の挙動に一貫性が無いため。
]
unfixable = [
"F401", # unused-import
"F841", # unused-variable
]
[tool.ruff.lint.per-file-ignores]
"test/**/test_*.py" = ["D103"] # undocumented-public-function。pytest の対象 test_*() が D103 の対象になり、関数名から内容が自明でも docstring を強制されるため。
[tool.ruff.lint.isort]
known-first-party = ["voicevox_engine"]
known-third-party = ["numpy"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
docstring-code-format = true
[tool.mypy]
strict = true
plugins = "pydantic.mypy"
python_version = "3.11"
ignore_missing_imports = true
warn_unreachable = true
[tool.typos.files]
extend-exclude = ["tools/licenses"]
[tool.typos.default.extend-words]
datas = "datas" # PyInstaller's argument