-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
177 lines (150 loc) · 4.43 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
# -- Project metadata ------------------------------------------------------------------
[project]
name = "pyrekordbox"
description = "Inofficial Python package for interacting with the library of Pioneers Rekordbox DJ software."
readme = "README.md"
authors = [
{name = "Dylan Jones", email = "dylanljones94@gmail.com"},
]
license = {file = "LICENSE"}
dynamic = ["version"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Multimedia :: Sound/Audio",
]
requires-python = ">=3.8"
dependencies = [
"bidict>=0.21.0",
"blowfish>=0.6.0",
"construct>=2.10.0",
"numpy>=1.19.0",
"packaging",
"psutil>=5.9.0",
"sqlalchemy>=2.0.0",
"frida-tools",
"python-dateutil",
]
[project.optional-dependencies]
test = [
"hypothesis>=6.0.0",
"pytest>=6.2.0",
"pytest-cov",
]
[project.urls]
Source = "https://github.com/dylanljones/pyrekordbox"
Documentation = "https://pyrekordbox.readthedocs.io/en/stable/"
Tracker = "https://github.com/dylanljones/pyrekordbox/issues"
# -- Build -----------------------------------------------------------------------------
[build-system]
requires = [
"setuptools >= 61.0.0",
"setuptools_scm[toml] >= 4",
"setuptools_scm_git_archive",
"wheel >= 0.37.0",
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
platforms = ["any"]
zip-safe = false
include-package-data = true
[tool.setuptools.packages]
find = {}
[tool.setuptools_scm]
write_to = "pyrekordbox/_version.py"
git_describe_command = "git describe --dirty --tags --long --match * --first-parent"
# -- Ruff ------------------------------------------------------------------------------
[tool.ruff]
exclude = [
".git",
".idea",
"__pycache__",
"build",
"dist",
".ruff_cache",
"*/structs.py",
"*/_version.py",
"docs/*",
]
line-length = 88
indent-width = 4
[tool.ruff.lint]
select = [
"F", # flake8
"E", # pycodestyle Errors
"W", # pycodestyle Warnings
"I", # isort
"NPY", # Numpy
"N", # pep8-naming
"D", # pydocstyle
]
ignore = [
"E203", # Whitespace before ':'
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
"D401", # First line should be in imperative mood
"D403", # First word of the first line should be capitalized
"D404", # First word of the docstring should not be "This"
#"N802", # Function name should be lowercase
#"N803", # Argument name should be lowercase
"N813", # Camelcase imported as lowercase
#"N815", # Variable in class scope should not be mixedCase
"N818", # Exception name should be named with an Error suffix
]
fixable = ["ALL"] # Allow fix for all enabled rules (when `--fix`) is provided.
unfixable = []
[tool.ruff.lint.per-file-ignores]
"*__init__.py" = ["F401"]
"rbxml.py" = ["N803"]
"tables.py" = ["N802", "N815"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
combine-as-imports = true
length-sort = false
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
# -- Coverage --------------------------------------------------------------------------
[tool.coverage.run]
branch = false
source = ["pyrekordbox"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"@abstract",
"@property",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:"
]
omit = [
"pyrekordbox/utils.py",
"pyrekordbox/config.py",
"pyrekordbox/_version.py",
"pyrekordbox/__main__.py",
]
ignore_errors = true