-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
113 lines (101 loc) · 2.7 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "usdb_syncer"
version = "0.7.0"
authors = ["Markus Böhning <[email protected]>"]
description = "A download manager for USDB songs."
readme = ["README.md"]
repository = "https://github.com/bohning/usdb_syncer"
[tool.poetry.dependencies]
python = "3.12.*"
appdirs = "*"
attrs = "*"
beautifulsoup4 = "*"
browser_cookie3 = "*"
dbus-python = {version = "*", markers="sys_platform == 'linux'"}
ffmpeg-normalize = ">=1.27"
filetype = "*"
importlib-metadata = "*"
keyring = "*"
lxml = "*"
mutagen = "*"
pdfme = "*"
pillow = ">=10"
PySide6 = "6.8.0.2"
requests = "*"
rookiepy = "^0.5.3"
send2trash = "*"
unidecode = "*"
yt-dlp = {version = "*", extras = ["default", "curl_cffi"]}
wheel = "*"
[tool.poetry.group.dev.dependencies]
tox = "*"
# lint
black = "*"
isort = "*"
mypy = "*"
pylint = "*"
types-setuptools = "*"
types-requests = "*"
# test
pytest = "*"
# benchmark
snakeviz = "*"
[tool.poetry.group.build.dependencies]
pyinstaller = "*"
pyinstaller-hooks-contrib = "*"
# specifically required for pyinstaller (Note: darwin -> macos)
altgraph = "*"
macholib = {version = "*", markers="sys_platform == 'darwin'"}
pywin32-ctypes = {version = "*", markers="sys_platform == 'win32'"}
[tool.poetry.scripts]
usdb_syncer = "usdb_syncer.gui:main"
generate_pyside_files = "tools.generate_pyside_files:cli_entry"
generate_song_list_json = "tools.generate_song_list_json:cli_entry"
write_release_info = "tools.write_release_info:cli_entry"
[tool.isort]
profile = "black"
skip_glob = ["src/usdb_syncer/gui/forms", "src/usdb_syncer/gui/resources"]
[tool.black]
skip-magic-trailing-comma = true
preview = true
[tool.pylint.master]
ignore-paths = [
"src/usdb_syncer/gui/forms",
"src/usdb_syncer/gui/resources",
"venv",
".tox",
]
# Add McCabe code complexity checker
load-plugins = "pylint.extensions.mccabe"
[tool.pylint.basic]
good-names = ["mw", "p1", "p2", "closeEvent", "customEvent"]
[tool.pylint.messages_control]
extension-pkg-whitelist = ["PySide6", "shiboken6"]
disable = [
"too-few-public-methods",
"logging-fstring-interpolation",
"too-many-instance-attributes",
"too-many-arguments",
"missing-function-docstring",
"too-many-return-statements",
"duplicate-code",
"too-many-public-methods",
"line-too-long",
]
[tool.mypy]
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",
]