Migrate linting to prek, bump Python to 3.14#406
Merged
Snuffy2 merged 1 commit intocustom-components:masterfrom Apr 2, 2026
Merged
Migrate linting to prek, bump Python to 3.14#406Snuffy2 merged 1 commit intocustom-components:masterfrom
Snuffy2 merged 1 commit intocustom-components:masterfrom
Conversation
Migrate CI and local tooling from pre-commit to prek and update project tooling for Python 3.14. Changes include: - CI: simplified .github/workflows/linters.yml to checkout and run the prek action (removed detailed setup/cache/install steps). - Local tooling docs: AGENTS.md updated to instruct use of prek and prek run -a. - Pre-commit config: .pre-commit-config.yaml updated with additional shellcheck dependency, added a mypy hook and extra dependencies, removed pre-commit.ci config blocks. - pyproject.toml: requires-python set to >=3.14, lint tooling updated to use prek, mypy/ruff configuration adjusted (python_version, target-version, required-version, pydocstyle convention and property-decorators). - Code/tests: small refactors in tests to replace inline lambdas with named helper functions for is_attr_blank/set_attr; several exception handling lines edited in helpers.py, sensor.py and tests (exception clause formatting changed). These changes modernize the lint/test workflow and align tooling with Python 3.14 and the chosen prek-based tooling.
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Migrate CI and local tooling from pre-commit to prek and update project tooling for Python 3.14. Changes include:
These changes modernize the lint/test workflow and align tooling with Python 3.14 and the chosen prek-based tooling.