fix project files
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 19 Apr 2023 15:53:58 +0000 (17:53 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 19 Apr 2023 15:53:58 +0000 (17:53 +0200)
.pre-commit-config.yaml
pyproject.toml
requirements_all.txt
script/gen_requirements_all.py

index ce505bf49712ca9c001789641c615794862a7863..3251e205fd1fb75f9bb679d010e04d1d952178c7 100644 (file)
@@ -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
index f96a862c71746a0f88b3ebe3df7960c2566c05e0..a48e633500f9d52ea8d4aeb1eb85c898bc599b14 100644 (file)
@@ -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",
index 471de6b565b30b364f7a9df9792de2f0da275216..479e11cb72bbc13c4924bc8f3b80969d25f92622 100644 (file)
@@ -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
index dca98a5357c29a84e33f566ff608c7d9052767ce..c6111932c0eaab29bd006e505ed46a2ea1f2e100 100644 (file)
@@ -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):