-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpyproject.toml
More file actions
206 lines (190 loc) · 4.28 KB
/
pyproject.toml
File metadata and controls
206 lines (190 loc) · 4.28 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
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
203
204
205
206
[project]
name = "usdb_syncer"
dynamic = ["version"]
description = "A download manager for USDB songs."
authors = [{ name = "Markus Böhning", email = "markus.boehning@gmail.com" }]
license = "GPL-3.0-only"
license-files = ["LICENSE", "NOTICE.txt", "licenses/*"]
requires-python = ">=3.11,<3.15"
readme = "README.md"
dependencies = [
"attrs",
"beautifulsoup4",
"deno>=2.7.4",
"diff-match-patch",
"ffmpeg-normalize>=1.27",
"filetype",
"flask>=3.1.1,<4",
"keyring",
"lxml",
"mutagen",
"numpy>=2.2.5,<3",
"packaging",
"pillow>=10",
"platformdirs",
"PySide6",
"qrcode[pil]~=8.2",
"reportlab",
"requests",
"send2trash",
"sounddevice>=0.5.1,<0.6",
"soundfile>=0.13.1,<0.14",
"unidecode",
"yt-dlp[curl_cffi, default]",
]
[project.urls]
Repository = "https://github.com/bohning/usdb_syncer"
[project.scripts]
usdb_syncer = "usdb_syncer.gui:main"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"tox",
"ruff==0.14.13",
"mypy",
"types-requests",
"pytest",
"snakeviz",
"defusedxml>=0.7.1,<0.8",
]
bundle = [
"pyinstaller",
"pyinstaller-hooks-contrib",
"altgraph",
"macholib ; sys_platform == 'darwin'",
"pywin32-ctypes ; sys_platform == 'win32'",
]
[tool.uv]
default-groups = [
"dev",
]
reinstall-package = ["usdb_syncer"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.sdist]
artifacts = [
"src/usdb_syncer/gui/forms/*.py",
"src/usdb_syncer/gui/resources/qt/*.py"
]
[tool.hatch.build.targets.wheel]
artifacts = [
"src/usdb_syncer/gui/forms/*.py",
"src/usdb_syncer/gui/resources/qt/*.py",
]
exclude = [
"src/usdb_syncer/gui/forms/*.ui",
"src/usdb_syncer/gui/resources/qt/*.qrc",
"src/usdb_syncer/gui/resources/qt/*.png",
"src/usdb_syncer/gui/resources/qt/*.svg",
"src/usdb_syncer/gui/resources/qt/*.afphoto",
]
[tool.ruff]
extend-exclude = [
"forms",
"qt",
]
target-version = "py312"
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = [
"A",
"ARG",
"B",
"BLE",
"C4",
"C90",
"COM",
"D",
"E",
"F",
"FA",
"FLY",
"I",
"ISC",
"INP",
"LOG",
"N",
"PERF",
"PIE",
"PTH",
"Q",
"RET",
"RUF",
"S",
"SIM",
"TC",
"TRY",
"UP",
"W",
]
ignore = [
# Since we're using the ruff formatter, we follow ruff's official guide on what
# rules to skip: https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
# 'Line too long' will be caught by format check
"E501",
# We're fine with `assert`s if they're not used for validation, but state facts
"S101",
# Allow `subprocess` and starting without shell.
"S404",
"S603",
"S606",
# Maybe investigate in the future, if it is possible to do this more safely.
"S607",
# This flags _all_ dynamic SQL constructions, so it's pointless.
"S608",
# Since we don't have a public api, we don't require docstrings for functions.
"D102",
"D103",
"D105",
"D107",
# D415 is handled by D400 already, so we skip it to avoid double warnings.
"D415",
# D203 and D211 are incompatible. We prefer D211.
"D203",
# D212 and D213 are incompatible. We prefer D212.
"D213",
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.isort]
# For consistency with the formatter, see https://docs.astral.sh/ruff/settings/#lint_isort_split-on-trailing-comma
split-on-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["ARG001", "D"]
[tool.mypy]
strict_equality = true
strict_equality_for_none = true
ignore_missing_imports = true
disallow_untyped_defs = true
follow_imports = "silent"
exclude = ["src/usdb_syncer/gui/forms", "src/usdb_syncer/gui/resources"]
[tool.pyright]
# generates a lot of false positives for mutagen
reportPrivateImportUsage = false
exclude = [
"src/usdb_syncer/gui/forms",
"src/usdb_syncer/gui/resources",
"venv",
".tox",
"**/node_modules",
"**/__pycache__",
"**/.*",
".venv",
"info",
]