-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
98 lines (84 loc) · 1.98 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
94
95
96
97
98
[build-system]
build-backend = "poetry-core.masonry.api"
requires = ["poetry-core"]
[tool.coverage.report]
exclude_also = [
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"except Exception as e"
]
[tool.coverage.run]
omit = [
"./yuisub/__main__.py",
"./yuisub/__init__.py"
]
[tool.mypy]
disable_error_code = "attr-defined"
disallow_any_generics = false
ignore_missing_imports = true
plugins = ["pydantic.mypy"]
strict = true
warn_return_any = false
[tool.poetry]
authors = ["Tohrusky"]
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
description = "Auto translation of new anime episodes based on Yui-MHCP001"
homepage = "https://github.com/TensoRaws/yuisub"
license = "GPL-3.0-only"
name = "yuisub"
readme = "README.md"
repository = "https://github.com/TensoRaws/yuisub"
version = "1.2.1"
# Requirements
[tool.poetry.dependencies]
httpx = "*"
openai = "*"
pydantic = "*"
pysubs2 = "*"
python = "^3.9"
tenacity = "*"
[tool.poetry.group.dev.dependencies]
openai-whisper = "*"
pre-commit = "^3.7.0"
[tool.poetry.group.test.dependencies]
coverage = "^7.2.0"
pytest = "^8.0"
pytest-asyncio = "^0.24.0"
pytest-cov = "^4.0"
[tool.poetry.group.typing.dependencies]
mypy = "^1.8.0"
ruff = "^0.3.7"
types-requests = "^2.28.8"
[tool.poetry.scripts]
yuisub = 'yuisub.__main__:main'
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.ruff]
extend-ignore = ["B018", "B019", "RUF001"]
extend-select = [
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PGH", # pygrep-hooks
"RUF", # ruff
"W", # pycodestyle
"YTT" # flake8-2020
]
fixable = ["ALL"]
line-length = 120
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
quote-style = "double"
skip-magic-trailing-comma = false
[tool.ruff.isort]
combine-as-imports = true
[tool.ruff.mccabe]
max-complexity = 10