forked from e1miran/Now-Playing-Serato
-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
153 lines (136 loc) · 3.62 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
[build-system]
requires = ["setuptools >= 60", "versioningit"]
build-backend = "setuptools.build_meta"
[project]
name = "NowPlaying"
dynamic = ["version", "dependencies", "optional-dependencies"]
[project.entry-points.pyinstaller40]
hook-dirs = "nowplaying.__pyinstaller:get_hook_dirs"
[project.scripts]
NowPlaying = "nowplaying.__main__:main"
[tool.coverage.run]
omit = [
"nowplaying/qtrc.py",
"nowplaying/vendor/*",
"nowplaying/__pyinstaller/*",
]
concurrency = ["multiprocessing"]
relative_files = true
source = ["nowplaying"]
[tool.coverage.report]
ignore_errors = true
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"raise PluginVerifyError"
]
[tool.setuptools]
include-package-data = true
packages = [
"nowplaying",
"nowplaying.__pyinstaller",
"nowplaying.artistextras",
"nowplaying.inputs",
"nowplaying.processes",
"nowplaying.recognition",
"nowplaying.resources",
"nowplaying.templates",
"nowplaying.twitch",
"nowplaying.vendor",
"nowplaying.vendor.audio_metadata",
"nowplaying.vendor.audio_metadata.formats",
"nowplaying.vendor.audio_metadata.tbm_utils",
"nowplaying.vendor.discogs_client",
"nowplaying.vendor.pid",
"nowplaying.vendor.wptools"
]
license-files = ["LICENSE.txt"]
[tool.setuptools.dynamic]
dependencies = { file = ["requirements-run.txt"] }
optional-dependencies = { dev = { file = [
"requirements-dev.txt"] }, docs = { file = [
"docs/requirements.txt"] }, osspecials = { file = [
"requirements-osspecials.txt"]}, test = { file = [
"requirements-test.txt"
] } }
version = { attr = "nowplaying.version.__VERSION__" }
[tool.setuptools.package-data]
"*" = [
"*.htm",
"*.ico",
"*.LICENSE",
"*.txt",
"*.ui",
]
[tool.pyright]
exclude =["build"]
ignore = ["**/nowplaying/vendor/**",]
pythonVersion = "3.11"
pythonPlatform = "All"
include = [
"nowplaying",
"nowplaying/artistextras",
"nowplaying/inputs",
"nowplaying/processes",
"nowplaying/recognition",
"nowplaying/twitch"]
[tool.pytest.ini_options]
# initializing qtbot _after_ asyncio or threading just
# breaks pytest horribily so force those tests first
testpaths = ["tests-qt", "tests"]
markers = [
"seratosettings: custom settings for serato ",
"templatesettings: custom settings for templates",
]
qt_api = "pyside6"
#log_cli = true
addopts = [
"--cov=nowplaying",
"--cov-report=html",
"-ra",
]
log_level = "DEBUG"
asyncio_mode = "strict"
qt_qapp_name = "testsuite"
[tool.pylint.main]
# List of plugins (as comma separated values of python module names) to load,
# usually to register additional checkers.
load-plugins = ["pylint.extensions.no_self_use"]
ignore-paths = [
"nowplaying/beam",
"nowplaying/qtrc.py",
"nowplaying/vendor",
"nowplaying/version.py"
]
[tool.vendoring]
destination = "nowplaying/vendor"
requirements = "vendor.txt"
namespace = "nowplaying.vendor"
[tool.versioningit]
vcs = "git"
[tool.versioningit.format]
distance = "{base_version}+{distance}.{vcs}{rev}"
dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
[tool.versioningit.write]
file = "nowplaying/version.py"
template = '''
""" autogenerated version file """
__VERSION__ = '{version}'
__VERSION_DISTANCE__ = {distance}
__VERSION_TUPLE__ = {version_tuple}
__BUILD_DATE__ = '{build_date:%Y-%m-%dT%H:%M:%SZ}'
__CURRENT_TAG__ = '{base_version}'
# pylint: disable=trailing-newlines
'''
[tool.yapf]
column_limit = 100
[tool.yapfignore]
ignore_patterns = [
"nowplaying/version.py",
"nowplaying/vendor/**",
"nowplaying/qtrc.py",
]