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
|
[project]
name = "quodlibet"
description = "A music library, tagger, and player"
license = { text = "GPL-2.0-or-later" }
keywords = ["audio", "music", "player", "tags", "gtk"]
version = "4.7.1"
authors = [
{ name = "Joe Wreschnig" },
{ name = "Michael Urman" },
{ name = "Steven Robertson" },
{ name = "Christoph Reiter" },
{ name = "Nick Boultbee" },
]
maintainers = [{ name = "Christoph Reiter" }, { name = "Nick Boultbee" }]
requires-python = '>=3.10,<4.0'
dependencies = [
"mutagen>=1.45,<2.0",
"feedparser>=6.0.11,<7.0.0",
"pycairo>=1.19,<2.0",
"pygobject>=3.34.0,<4.0.0",
]
[project.optional-dependencies]
# Use with poetry install -E plugins
plugins = [
"musicbrainzngs>=0.0.0,<1.0.0",
"dbus-python; platform_system == 'Linux'",
# 0.28 switched to lxml which is proving tricky on Windows
"soco>=0.27,<0.28",
"pypresence>=4.2.1,<5.0.0",
"paho-mqtt>=1.6.1,<2.0.0",
]
[project.urls]
homepage = "https://quodlibet.readthedocs.io/"
repository = "https://github.com/quodlibet/quodlibet"
documentation = "https://quodlibet.readthedocs.io/"
[tool.poetry]
requires-poetry = '>=2.0'
package-mode = false
[tool.poetry.group.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.14.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 = "^75.2.0"
ruff = { version = "0.7.3", platform = "linux" }
[tool.ruff]
target-version = "py310"
line-length = 88
extend-exclude = ["dev-utils/*", "quodlibet/packages/"]
[tool.ruff.lint]
select = [
"B",
"C",
"E",
"ERA",
"EXE",
"F",
"FLY",
"INT", # Gettext
"N",
"PIE",
"Q",
"RET", # return types - mostly useful IMO
"UP",
"W",
]
ignore = [
"E741", # Allow single-letter variables
"E402", # Allow imports not at top
"N817", # allow shorter imports (FakeDisplayItem as FDI)
]
[tool.ruff.lint.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
]
"**/cdefs.py" = ["ERA001"]
"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.lint.mccabe]
# TODO: turn this down, a lot!
max-complexity = 40
[tool.coverage.run]
omit = ["quodlibet/packages/*"]
include = ["quodlibet/*"]
[build-system]
requires = ["setuptools"]
|