-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
134 lines (119 loc) · 2.61 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
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
124
125
126
127
128
129
130
131
132
133
134
[tool.poetry]
name = "isubrip"
version = "2.5.6"
description = "A Python package for scraping and downloading subtitles from AppleTV / iTunes movie pages."
license = "MIT"
authors = ["Michael Yochpaz"]
readme = "README.md"
homepage = "https://github.com/MichaelYochpaz/iSubRip"
repository = "https://github.com/MichaelYochpaz/iSubRip"
keywords = [
"iTunes",
"AppleTV",
"movies",
"subtitles",
"scrape",
"scraper",
"download",
"m3u8"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
packages = [
{ include = "isubrip" },
]
include = [
"isubrip/resources", "README.md", "LICENSE"
]
[tool.mypy]
disallow_untyped_defs = true
explicit_package_bases = true
ignore_missing_imports = true
python_version = "3.8"
warn_return_any = true
[tool.poetry.scripts]
isubrip = "isubrip.__main__:main"
[tool.poetry.urls]
"Bug Reports" = "https://github.com/MichaelYochpaz/iSubRip/issues"
[tool.poetry.dependencies]
python = "^3.8"
httpx = {extras = ["http2"], version = "^0.27.0"}
m3u8 = "^4.1.0"
mergedeep = "^1.3.4"
pydantic = "^2.7.0"
tomli = "^2.0.1"
[tool.poetry.group.dev.dependencies]
mypy = "^1.10.0"
ruff = "^0.4.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry_bumpversion.file."isubrip/constants.py"]
search = 'PACKAGE_VERSION = "{current_version}"'
replace = 'PACKAGE_VERSION = "{new_version}"'
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
select = [
"ARG",
"ASYNC",
"B",
"C4",
"COM",
"E",
"F",
"FA",
"I",
"INP",
"ISC",
"N",
"PIE",
"PGH",
"PT",
"PTH",
"Q",
"RSE",
"RET",
"RUF",
"S",
"SIM",
"SLF",
"T20",
"TCH",
"TID",
"TRY",
"UP",
]
ignore = [
"C416",
"Q000",
"RUF010",
"RUF012",
"SIM108",
"TD002",
"TD003",
"TRY003",
]
unfixable = ["ARG"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.lint.isort]
force-sort-within-sections = true
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true