Closed Xiretza closed 4 months ago
you might want to install all test dependencies first
pip3 install -r requirements_test_all
I did pip3 install -r requirements_test_all.txt
, and it helps some, but there are still errors:
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1
homeassistant/components/evohome/__init__.py:454: error: Unused "type: ignore" comment [unused-ignore]
homeassistant/components/evohome/__init__.py:465: error: Unused "type: ignore" comment [unused-ignore]
homeassistant/components/evohome/__init__.py:469: error: Unused "type: ignore" comment [unused-ignore]
homeassistant/components/evohome/__init__.py:498: error: Unused "type: ignore" comment [unused-ignore]
homeassistant/components/evohome/__init__.py:664: error: Returning Any from function declared to return "float | None" [no-any-return]
homeassistant/components/evohome/climate.py:223: error: Returning Any from function declared to return "str | None" [no-any-return]
homeassistant/components/evohome/climate.py:239: error: Returning Any from function declared to return "float | None" [no-any-return]
homeassistant/components/evohome/climate.py:258: error: Returning Any from function declared to return "float" [no-any-return]
homeassistant/components/evohome/climate.py:268: error: Returning Any from function declared to return "float" [no-any-return]
homeassistant/components/evohome/climate.py:402: error: Unused "type: ignore" comment [unused-ignore]
homeassistant/components/amcrest/camera.py:209: error: Returning Any from function declared to return "bytes | None" [no-any-return]
homeassistant/components/amcrest/camera.py:492: error: Unused "type: ignore" comment [unused-ignore]
homeassistant/components/amcrest/camera.py:494: error: Unused "type: ignore" comment [unused-ignore]
homeassistant/components/amcrest/camera.py:529: error: Returning Any from function declared to return "bool" [no-any-return]
homeassistant/components/amcrest/camera.py:550: error: Returning Any from function declared to return "bool" [no-any-return]
homeassistant/components/amcrest/camera.py:569: error: Returning Any from function declared to return "bool" [no-any-return]
homeassistant/components/amcrest/camera.py:582: error: Returning Any from function declared to return "bool" [no-any-return]
homeassistant/components/amcrest/camera.py:619: error: Returning Any from function declared to return "bool" [no-any-return]
homeassistant/components/amcrest/camera.py:640: error: Returning Any from function declared to return "str" [no-any-return]
homeassistant/components/amcrest/__init__.py:131: error: Class cannot subclass "ApiWrapper" (has type "Any") [misc]
homeassistant/components/amcrest/__init__.py:206: error: Returning Any from function declared to return "Response" [no-any-return]
homeassistant/components/google_cloud/tts.py:6: error: Module "google.cloud" has no attribute "texttospeech" [attr-defined]
Found 22 errors in 5 files (checked 2776 source files)
Success: no issues found in 2804 source files
Success: no issues found in 1003 source files
https://github.com/home-assistant/core/pull/109089 Merely changes a comment at the top of a file and that is failing on the same error too. Something is very broken with CI.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
Following the instructions on https://developers.home-assistant.io/docs/development_testing/, mypy reports hundreds of errors in freshly cloned files, which makes it impossible to find errors in your actual contribution:
(I had to kill it at that point because it spawned hundreds of pylint processes that ate all my RAM)
What version of Home Assistant Core has the issue?
f2100f80c4fa42db0accd6bb93e28d06d03cd052
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response