diff --git a/pyproject.toml b/pyproject.toml index c893d5b9b..0f12d6d84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,70 +1,31 @@ [build-system] -requires = ["setuptools~=62.3", "wheel~=0.37.1"] +requires = [ "setuptools~=62.3", "wheel~=0.37.1",] build-backend = "setuptools.build_meta" [project] name = "music_assistant" -# The version is set by GH action on release version = "0.0.0" -license = {text = "Apache-2.0"} description = "Music Assistant" readme = "README.md" requires-python = ">=3.11" -authors = [ - {name = "The Music Assistant Authors", email = "marcelveldt@users.noreply.github.com"} -] -classifiers = [ - "Environment :: Console", - "Programming Language :: Python :: 3.11", -] -dependencies = [ - "aiohttp", - "orjson", - "mashumaro" -] +classifiers = [ "Environment :: Console", "Programming Language :: Python :: 3.11",] +dependencies = [ "aiohttp", "orjson", "mashumaro",] +[[project.authors]] +name = "The Music Assistant Authors" +email = "marcelveldt@users.noreply.github.com" + +[project.license] +text = "Apache-2.0" [project.optional-dependencies] -server = [ - "faust-cchardet>=2.1.18", - "aiodns>=3.0.0", - "Brotli>=1.0.9", - "aiohttp==3.9.0", - "asyncio-throttle==1.0.2", - "aiofiles==23.2.1", - "aiorun==2023.7.2", - "colorlog==6.8.0", - "aiosqlite==0.19.0", - "python-slugify==8.0.1", - "mashumaro==3.11", - "memory-tempfile==2.2.3", - "music-assistant-frontend==2.0.15", - "pillow==10.1.0", - "unidecode==1.3.7", - "xmltodict==0.13.0", - "orjson==3.9.10", - "shortuuid==1.0.11", - "zeroconf==0.128.0", - "cryptography==41.0.6", - "ifaddr==0.2.0", - "uvloop==0.19.0" -] -test = [ - "black==23.7.0", - "codespell==2.2.6", - "mypy==1.7.1", - "ruff==0.1.6", - "pytest==7.4.3", - "pytest-asyncio==0.23.2", - "pytest-aiohttp==1.0.5", - "pytest-cov==4.1.0", - "pre-commit==3.5.0" -] +server = [ "faust-cchardet>=2.1.18", "aiodns>=3.0.0", "Brotli>=1.0.9", "aiohttp==3.9.0", "asyncio-throttle==1.0.2", "aiofiles==23.2.1", "aiorun==2023.7.2", "colorlog==6.8.0", "aiosqlite==0.19.0", "python-slugify==8.0.1", "mashumaro==3.11", "memory-tempfile==2.2.3", "music-assistant-frontend==2.0.16", "pillow==10.1.0", "unidecode==1.3.7", "xmltodict==0.13.0", "orjson==3.9.10", "shortuuid==1.0.11", "zeroconf==0.128.0", "cryptography==41.0.6", "ifaddr==0.2.0", "uvloop==0.19.0",] +test = [ "black==23.7.0", "codespell==2.2.6", "mypy==1.7.1", "ruff==0.1.6", "pytest==7.4.3", "pytest-asyncio==0.23.2", "pytest-aiohttp==1.0.5", "pytest-cov==4.1.0", "pre-commit==3.5.0",] [project.scripts] mass = "music_assistant.__main__:main" [tool.black] -target-version = ['py311'] +target-version = [ "py311",] line-length = 100 [tool.codespell] @@ -73,7 +34,6 @@ ignore-words-list = "provid,hass,followings" [tool.mypy] python_version = "3.11" check_untyped_defs = true -#disallow_any_generics = true disallow_incomplete_defs = true disallow_untyped_calls = false disallow_untyped_defs = true @@ -86,54 +46,45 @@ warn_return_any = true warn_unreachable = true warn_unused_configs = true warn_unused_ignores = true - [[tool.mypy.overrides]] ignore_missing_imports = true -module = [ - "aiorun", -] - -[tool.pytest.ini_options] -asyncio_mode = "auto" -pythonpath = [ - "." -] +module = [ "aiorun",] [tool.setuptools] -platforms = ["any"] -zip-safe = false -packages = ["music_assistant"] +platforms = [ "any",] +zip-safe = false +packages = [ "music_assistant",] include-package-data = true -[tool.setuptools.package-data] -music_assistant = ["py.typed"] - [tool.ruff] fix = true show-fixes = true - -# enable later: "C90", "PTH", "TCH", "RET", "ANN" -select = ["E", "F", "W", "I", "N", "D", "UP", "PL", "Q", "SIM", "TID", "ARG"] -ignore = ["PLR2004", "N818"] -extend-exclude = ["app_vars.py"] -unfixable = ["F841"] +select = [ "E", "F", "W", "I", "N", "D", "UP", "PL", "Q", "SIM", "TID", "ARG",] +ignore = [ "PLR2004", "N818",] +extend-exclude = [ "app_vars.py",] +unfixable = [ "F841",] line-length = 100 target-version = "py311" +[tool.pytest.ini_options] +asyncio_mode = "auto" +pythonpath = [ ".",] + +[tool.setuptools.package-data] +music_assistant = [ "py.typed",] + [tool.ruff.flake8-annotations] allow-star-arg-any = true suppress-dummy-args = true [tool.ruff.flake8-builtins] -builtins-ignorelist = ["id"] +builtins-ignorelist = [ "id",] [tool.ruff.pydocstyle] -# Use Google-style docstrings. convention = "pep257" [tool.ruff.pylint] - -max-branches=25 -max-returns=15 -max-args=10 -max-statements=50 +max-branches = 25 +max-returns = 15 +max-args = 10 +max-statements = 50 diff --git a/requirements_all.txt b/requirements_all.txt index 83a4670e5..eb5b48d5c 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -18,7 +18,7 @@ git+https://github.com/music-assistant/deezer-python-async@v0.1.2 ifaddr==0.2.0 mashumaro==3.11 memory-tempfile==2.2.3 -music-assistant-frontend==2.0.15 +music-assistant-frontend==2.0.16 orjson==3.9.10 pillow==10.1.0 plexapi==4.15.6