From: Marcel van der Veldt Date: Wed, 19 Apr 2023 15:53:58 +0000 (+0200) Subject: fix project files X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=113dfff2527f9bc7dd345963b526f5d3392f800b;p=music-assistant-server.git fix project files --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ce505bf4..3251e205 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,12 +32,22 @@ repos: - repo: local hooks: - # - id: pylint - # name: pylint - # entry: script/run-in-env.sh pylint -j 0 --ignore-missing-annotations=y - # language: script - # types: [python] - # files: ^music_assistant/.+\.py$ + - id: pylint + name: pylint + entry: script/run-in-env.sh pylint -j 0 + language: script + types: [python] + files: ^hass_client/.+\.py$ + + - id: mypy + name: mypy + entry: script/run-in-env.sh mypy + language: script + types: [python] + files: ^hass_client/.+\.py$ + + - repo: local + hooks: - id: gen_requirements_all name: gen_requirements_all entry: script/run-in-env.sh python3 -m script.gen_requirements_all diff --git a/pyproject.toml b/pyproject.toml index f96a862c..a48e6335 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ description = "Music Assistant" readme = "README.md" requires-python = ">=3.11" authors = [ - {name = "The usic Assistant Authors", email = "marcelveldt@users.noreply.github.com"} + {name = "The Music Assistant Authors", email = "marcelveldt@users.noreply.github.com"} ] classifiers = [ "Environment :: Console", @@ -24,6 +24,9 @@ dependencies = [ [project.optional-dependencies] server = [ + "faust-cchardet>=2.1.18", + "aiodns>=3.0.0", + "Brotli>=1.0.9", "aiohttp==3.8.4", "asyncio-throttle==1.0.2", "aiofiles==23.1.0", diff --git a/requirements_all.txt b/requirements_all.txt index 471de6b5..479e11cb 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1,5 +1,7 @@ # WARNING: this file is autogenerated! +Brotli>=1.0.9 +aiodns>=3.0.0 aiofiles==23.1.0 aiohttp==3.8.4 aiorun==2022.11.1 @@ -10,6 +12,7 @@ asyncio-throttle==1.0.2 coloredlogs==15.0.1 cryptography==40.0.2 databases==0.7.0 +faust-cchardet>=2.1.18 git+https://github.com/jozefKruszynski/python-tidal.git@v0.7.1 git+https://github.com/pytube/pytube.git@refs/pull/1501/head mashumaro==3.7 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index dca98a53..c6111932 100644 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -59,6 +59,7 @@ def main() -> int: # TODO: compare versions and only store most recent final_requirements: dict[str, str] = {} for req_str in core_reqs + extra_reqs: + package_name = req_str if match := PACKAGE_REGEX.search(req_str): package_name = match.group(1).lower().replace("_", "-") elif match := GIT_REPO_REGEX.search(req_str):