-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpyproject.toml
132 lines (121 loc) · 2.57 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
[project]
name = "isubrip"
version = "2.6.2"
description = "A Python package for scraping and downloading subtitles from AppleTV / iTunes movie pages."
authors = [
{name = "Michael Yochpaz"}
]
readme = "README.md"
keywords = [
"iTunes",
"AppleTV",
"movies",
"subtitles",
"scrape",
"scraper",
"download",
"m3u8"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: End Users/Desktop",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">= 3.9"
dependencies = [
"httpx[http2]>=0.28.1",
"m3u8>=6.0.0",
"pydantic>=2.10.6",
"pydantic-settings>=2.7.1",
"pygments>=2.19.1", # Used by 'rich'. Specified here as version 2.18 appears to cause issues.
"rich>=13.9.4",
"tomli>=2.0.2",
"wcwidth>=0.2.13",
]
[project.urls]
Homepage = "https://github.com/MichaelYochpaz/iSubRip"
Repository = "https://github.com/MichaelYochpaz/iSubRip"
Issues = "https://github.com/MichaelYochpaz/iSubRip/issues"
Changelog = "https://github.com/MichaelYochpaz/iSubRip/blob/main/CHANGELOG.md"
[project.scripts]
isubrip = "isubrip.__main__:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
dev-dependencies = [
"mypy>=1.14.1",
"ruff>=0.9.3",
]
[tool.mypy]
check_untyped_defs = true
disallow_untyped_defs = true
explicit_package_bases = true
ignore_missing_imports = true
python_version = "3.9"
warn_return_any = true
plugins = [
"pydantic.mypy"
]
[tool.ruff]
line-length = 120
target-version = "py39"
[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