forked from quodlibet/quodlibet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
140 lines (126 loc) · 3.78 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
[tool.poetry]
name = "quodlibet"
version = "4.7.0-pre"
description = "A music library, tagger, and player"
authors = ["Joe Wreschnig", "Michael Urman", "Steven Robertson",
"Christoph Reiter", "Nick Boultbee", "(many others)"]
maintainers = ["Christoph Reiter"]
homepage = "https://quodlibet.readthedocs.io/"
documentation = "https://quodlibet.readthedocs.io/"
repository = "https://github.com/quodlibet/quodlibet"
keywords = ["audio", "music", "player", "tags", "gtk"]
license = "GPL-2.0-or-later"
packages = [
{ include = "quodlibet", from = "." }
]
[tool.poetry.scripts]
# Convenience: `poetry run quodlibet` just runs the app (with no CLI args)
quodlibet = "quodlibet.main:main"
[tool.poetry.dependencies]
python = "^3.10"
mutagen = "^1.45"
feedparser = "^5.2 || ^6.0"
pycairo = "^1.19"
pygobject = "^3.34.0"
# Optional (mainly plugins)
musicbrainzngs = { version = "0.*", optional = true }
dbus-python = { version = "*", platform = "linux", optional = true }
# 0.28 switched to lxml which is proving tricky on Windows
soco = { version = ">=0.27, <0.28", optional = true }
pypresence = { version = "^4.2.1", optional = true }
paho-mqtt = { version = "^1.6.1", optional = true }
[tool.poetry.extras]
# Use with poetry install -E plugins
plugins = ["musicbrainzngs", "dbus-python", "paho-mqtt", "soco", "pypresence"]
[tool.poetry.dev-dependencies]
pytest = '^7.2.2'
polib = '^1.2.0'
sphinx = '^7.2.6'
sphinx_rtd_theme = '^1.2.0'
sphinx-autobuild = "^2021.3.14"
coverage = { extras = ["toml"], version = "^7.2.1" }
mypy = "1.5.1"
flaky = "^3.7.0"
types-docutils = "^0.19.0"
types-certifi = "^2021.10.8.3"
types-requests = "^2.28.11.15"
pyvirtualdisplay = { version = "^3.0", platform = "linux" }
setuptools = "^68.1.2"
ruff = { version = "^0.1.1", platform = "linux" }
[tool.ruff]
target-version = "py310"
select = ["E", "F", "B", "Q", "C", "N", "UP"]
ignore = [
"E741", # Allow single-letter variables
"E402", # Allow imports not at top
"N817", # allow shorter imports (FakeDisplayItem as FDI)
]
line-length = 88
extend-exclude = [
"dev-utils/*",
"quodlibet/packages/"
]
[tool.ruff.per-file-ignores]
"tests/**/*" = [
"N801", # allow Tformat_rating etc
"N802", # allow functions that look like classes e.g. `def PluginPreferences()`
"N806", # allow class-like variables in tests
"N816", # as above really
]
"quodlibet/**/__init__.py" = [
"B018", # allow importing "without effect"
]
"quodlibet/**/cdefs.py" = [
"N801", # Allow classes with lowercase names
]
"quodlibet/query/*" = [
"N801", "N802", # non-standard caps everywhere
]
"quodlibet/pattern/*" = [
"N801", "N802", # non-standard caps everywhere
]
"quodlibet/qltk/**/*" = [
"N806", # allow vars that look like constants e.g. XFCE_NAME, FDO_PATH
"N802",
]
"quodlibet/ext/**/*" = [
"N802", # allow plugins to have methods like PluginPreferences etc
]
"quodlibet/cli.py" = [
"C901", # TODO: refactor process_arguments to simplify (46)
]
"quodlibet/formats/_audio.py" = [
"C901", # TODO: refactor __call__ to simplify (72!)
]
"tests/__init__.py" = [
"N815", # allow failUnless etc
]
"quodlibet/mmkeys/*" = [
"N803", "N806", # allow non-standard naming
]
"quodlibet/session/*" = [
"N801", # allow lowercase classes
]
"quodlibet/util/winapi.py" = [
"N801", "N802", "N803", # allow non-standard naming
]
"quodlibet/util/dbusutils.py" = [
"N802", "N806", # allow non-standard naming
]
"quodlibet/util/windows.py" = [
"N806", # allow non-standard naming
]
"quodlibet/util/iso639.py" = [
"N806", # allow non-standard naming
]
"quodlibet/util/i18n.py" = [
"N802", # strange naming for gettext
]
[tool.ruff.mccabe]
# TODO: turn this down, a lot!
max-complexity = 40
[tool.coverage.run]
omit = ["quodlibet/packages/*"]
include = ["quodlibet/*"]
[build-system]
requires = ["setuptools", "wheel"]