-
Notifications
You must be signed in to change notification settings - Fork 22
/
pyproject.toml
88 lines (80 loc) · 2.29 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "beets-alternatives"
version = "0.13.1"
description = "beets plugin to manage multiple files"
authors = [
"Thomas Scholtes <[email protected]>",
"wisp3rwind <[email protected]>",
]
license = "MIT"
readme = "README.md"
include = ["CHANGELOG.md"]
packages = [{ include = "beetsplug" }]
homepage = "http://www.github.com/geigerzaehler/beets-alternatives"
repository = "http://www.github.com/geigerzaehler/beets-alternatives"
classifiers = [
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Multimedia :: Sound/Audio :: Players :: MP3",
"License :: OSI Approved :: MIT License",
"Environment :: Console",
"Programming Language :: Python",
]
[tool.poetry.dependencies]
python = ">=3.10, <4"
beets = ">=1.6.0, <3"
[tool.poetry.group.dev.dependencies]
confuse = "^2.0.1"
coverage = "^7.4.4"
mediafile = "^0.13.0"
mock = "^5.0.2"
pyright = "^1.1.340"
pytest = "^8.0.2"
pytest-cov = "^6.0.0"
ruff = "^0.8.0"
typeguard = "^4.1.5"
typing-extensions = "^4.9.0"
[tool.pytest.ini_options]
addopts = "--cov --cov-report=term --cov-report=html --cov-branch --doctest-modules"
filterwarnings = [
"error",
"ignore:.*imghdr.*:DeprecationWarning:mediafile",
"ignore:.*setlocale.*:DeprecationWarning:beets.util",
"ignore:.*pkgutil.get_loader.*:DeprecationWarning:confuse.util",
]
[tool.pyright]
typeCheckingMode = "strict"
reportMissingTypeStubs = "none"
# We haven’t made an effort to fix the following issues. Most are caused by
# missing type annotations from beets.
reportUnknownMemberType = "none"
reportUnknownArgumentType = "none"
reportUnknownVariableType = "none"
[tool.ruff]
target-version = "py310"
unsafe-fixes = true
preview = true
[tool.ruff.lint]
extend-select = [
"I", # Sort imports
"C", # Pyflakes conventions
"PTH", # Use pathlib instead of os
"PIE", # Misc. lints
"UP", # Enforce modern Python syntax
"FURB", # Also enforce more modern Python syntax
"PT", # Pytest style
"B", # Bugbear, avoid common sources of bugs
"SIM", # Simplify
"T20", # Warn about `print()`
"RUF",
"C4", # List comprehension
]
ignore = [
# Pyright checks for unused imports and does it better.
"F401",
# ternary can be less readable
"SIM108",
]
allowed-confusables = ["’"]