Update pre-commit settings and fix lint issues #3034
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed change
This pull request includes changes to multiple files, primarily focusing on updating dependencies, improving code quality, and changing the Python version requirement. The most significant changes include updating the versions of dependencies in
.pre-commit-config.yaml
, changing the required Python version inpyproject.toml
, and removing unnecessary methods and changing the formatting of code in several test files.Additional information
Dependency updates:
.pre-commit-config.yaml
: Updated the versions ofcodespell-project/codespell
,pre-commit/mirrors-mypy
, andastral-sh/ruff-pre-commit
. Removed dependenciesasottile/pyupgrade
,PyCQA/autoflake
,psf/black
,pycqa/flake8
,PyCQA/isort
, andcharliermarsh/ruff-pre-commit
.Python version changes:
pyproject.toml
: Changed the required Python version from 3.8 to 3.12.Code quality improvements:
tests/conftest.py
: Improved the docstrings forpermit_with_link_key
andwrite_network_info
methods.tests/test_develco.py
: Moved import ofClusterListener
to the top of the file for better code organization.tests/test_ikea.py
: Improved the docstring fortest_pm25_cluster_read
method.tests/test_legrand.py
: Added a docstring fortest_light_switch_with_neutral_signature
method.tests/test_quirks.py
: Refactored several test methods to improve code readability and efficiency. [1] [2] [3] [4] [5] [6] [7] [8] [9]Other changes:
setup.py
: Added a docstring for the file.tests/test_linkind.py
: Added a docstring for the file.Checklist
pre-commit
checks pass / the code has been formatted using Black