Closed bouwew closed 1 month ago
The update refines the code checking and configuration processes for various pre-commit hooks, along with improving code readability and maintaining consistent formatting in the Plugwise
custom components for Home Assistant. Changes include adjustments to hook configurations, debug logging, adding missing imports, and altering exception handling. Specific files were also updated to streamline formatting and enhance test structure.
Files/Paths | Change Summaries |
---|---|
.pre-commit-config.yaml | Added/modified hooks configurations, added ruff-format , adjusted arguments for codespell , no-commit-to-branch , and pyupgrade , and removed bandit and prettier hooks. |
.yamllint | Adjusted min-spaces-from-content rule from 2 to 1 . |
custom_components/plugwise/... | Improved formatting, added blank lines, moved async/def keywords to new lines, and refactored functions for code readability and clarity in various files (__init__.py , binary_sensor.py , climate.py , config_flow.py , const.py , coordinator.py , diagnostics.py , entity.py , number.py , select.py , sensor.py , switch.py , util.py ). |
pyproject.toml | Updated project version to 0.51.6 , Python version requirement to >=3.12 , added keywords, updated author/maintainer info, specified classifiers, and listed dependencies. |
tests/components/plugwise/... | Added empty lines for formatting and restructuring function calls, updated test values in various files (conftest.py , test_climate.py , test_config_flow.py , test_diagnostics.py , test_init.py , test_select.py , test_switch.py ). |
Amidst the code, a rabbit hops, With updates, tweaks, and gentle props. 🐇 Hooks refined, tests align, Bringing order, most divine. For Plugwise shines now, clear and bright, In Home Assistant's glowing light! ✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Should fix error in #680
Summary by CodeRabbit
New Features
Bug Fixes
Style
Tests
select_regulation_mode
in climate tests.Chores
pyproject.toml
with new version, Python requirements, and dependency information.