-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
pyproject.toml
202 lines (187 loc) · 4.41 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
[tool.poetry]
name = "tidal-dl-ng"
authors = ["Robert Honz <[email protected]>"]
version = "0.23.2"
description = "TIDAL Medial Downloader Next Generation!"
repository = "https://github.com/exislow/tidal-dl-ng"
documentation = "https://exislow.github.io/tidal-dl-ng/"
readme = "README.md"
packages = [
{ include = "tidal_dl_ng" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
]
[tool.poetry.scripts]
tidal-dl-ng = "tidal_dl_ng.cli:app"
tidal-dl-ng-gui = "tidal_dl_ng.gui:gui_activate"
tdn = "tidal_dl_ng.cli:app"
tdng = "tidal_dl_ng.gui:gui_activate"
[tool.poetry.dependencies]
python = ">=3.12,<3.13"
requests = "~2.32.3"
mutagen = "^1.47.0"
pycryptodome = "^3.21.0"
dataclasses-json = "^0.6.7"
pathvalidate = "^3.2.1"
m3u8 = "^6.0.0"
coloredlogs = "^15.0.1"
pyside6 = {version = "^6.7.0", optional = true}
pyqtdarktheme-fork = {version = "^2.3.2", optional = true}
mpegdash = "^0.4.0"
rich = "^13.9.4"
toml = "^0.10.2"
typer = "^0.15.1"
ffmpeg-python = "^0.2.0"
tidalapi = { git = "https://github.com/exislow/python-tidal.git", branch = "309-file-extension" }
[tool.poetry.extras]
gui = ["pyside6", "pyqtdarktheme-fork"]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.3"
deptry = "^0.20.0"
mypy = "^1.13.0"
pre-commit = "^4.0.1"
tox = "^4.23.2"
pyupgrade = "^3.19.0"
bandit = "^1.7.10"
darglint = "^1.8.1"
isort = { extras = ["colors"], version = "^5.13.2" }
mypy-extensions = "^1.0.0"
pydocstyle = "^6.3.0"
pylint = "^3.3.1"
pyinstaller = "^6.11.0"
pillow = "^11.0.0"
pytest-cov = "^6.0.0"
black = "^24.10.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6.1"
mkdocs-material = "^9.5.44"
mkdocstrings = { extras = ["python"], version = "^0.27.0" }
griffe = "^1.5.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
target-version = "py312"
line-length = 120
fix = true
# Overview: https://docs.astral.sh/ruff/rules/
select = [
# flake8-2020
"YTT",
# flake8-bandit
"S",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-comprehensions
"C4",
# flake8-debugger
"T10",
# flake8-simplify
"SIM",
# isort
"I",
# mccabe
"C90",
# pycodestyle
"E", "W",
# pyflakes
"F",
# pygrep-hooks
"PGH",
# pyupgrade
"UP",
# ruff
"RUF",
# tryceratops
"TRY",
]
ignore = [
# LineTooLong
"E501",
# DoNotAssignLambda
"E731",
# Do not use bare `except`
"E722",
# PEP 484 prohibits implicit `Optional`
# Disabled only temporarely.
"RUF013"
]
[tool.ruff.per-file-ignores]
"tests/*" = ["S101"]
"tidal_dl_ng/cli.py" = ["UP007"]
[tool.black]
# https://github.com/psf/black
target-version = ["py312"]
line-length = 120
color = true
preview = true
exclude = '''
/(
\.git
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| env
| venv
| site
| docs
| tidal_dl_ng/ui/main.py
| tidal_dl_ng/ui/dialog_version.py
)/
'''
[tool.isort]
# https://github.com/timothycrosley/isort/
py_version = 312
line_length = 120
known_typing = ["typing", "types", "typing_extensions", "mypy", "mypy_extensions"]
sections = ["FUTURE", "TYPING", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
include_trailing_comma = true
profile = "black"
multi_line_output = 3
indent = 4
color_output = true
known_third_party = ["Crypto", "PySide6", "coloredlogs", "dataclasses_json", "ffmpeg", "m3u8", "mutagen", "pathvalidate", "requests", "rich", "tidalapi", "toml", "typer"]
[tool.mypy]
# https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file
files = ["tidal_dl_ng"]
python_version = "3.12"
pretty = true
show_traceback = true
color_output = true
allow_redefinition = false
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
ignore_missing_imports = true
implicit_reexport = false
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
disallow_untyped_defs = "True"
disallow_any_unimported = "True"