test(ci): add coverage for static-checks

Runs mypy and ruff. Add basic test.

- Update pyproject.toml dependencies groups
  - PDM can use top-level [dependency-groups] (PEP 735), support was added in pdm 2.20.0 (October 2024)
- Fix Ruff warnings
This commit is contained in:
Götz 2026-03-01 09:39:13 -05:00
parent 49a75f8118
commit b922d34db8
6 changed files with 299 additions and 35 deletions

View file

@ -2,7 +2,7 @@ import asyncio
import sys
from collections.abc import Iterable
from rich import print
from rich import print as rich_print
from .__version__ import __version__
from .config.load import loadConfig
@ -40,9 +40,9 @@ def main() -> None:
print(f"mpd-now-playable v{__version__}")
return
print(f"mpd-now-playable v{__version__}")
rich_print(f"mpd-now-playable v{__version__}")
config = loadConfig()
print(config)
rich_print(config)
listener = MpdStateListener(config.cache)
receivers = tuple(construct_receiver(rec_config) for rec_config in config.receivers)