Repository navigation
build: lock dev dependencies with uv.lock - #578
Merged
Merged
Conversation
CI installed the pinned direct dev dependencies with uv pip install, but everything below them (all of Home Assistant via pytest-homeassistant-custom-component) floated, so an upstream release could break CI without a change here. Commit a uv.lock, install it with uv sync --locked, and key the uv cache on it. [tool.uv] environments limits the lock to Python >= 3.14.2, the minimum of the pinned Home Assistant; requires-python stays at 3.13 for users of older releases. Enable Renovate lock file maintenance (Sundays) so the transitive dependencies move in one weekly PR. It stays off for npm: refreshing frontend/package-lock.json can change the committed panel bundle, which Renovate cannot rebuild.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Locks the Python dev environment with a committed
uv.lock, like homeassistant-wolf-smartset.uv sync --locked --extra devinstead ofuv pip install -e ".[dev]", so every run installs the same 188 packages. The uv cache key uses theuv.lockhash. Apyproject.tomlchange without a matchinguv locknow fails CI.[tool.uv] environments = ["python_full_version >= '3.14.2'"]. Home Assistant 2026.10 needs 3.14.2, butrequires-pythonstays at 3.13 for users of older Home Assistant releases. The marker has to be raised when a test-plugin bump raises Home Assistant's minimum Python.package-lock.jsonrefresh can change the committed panel bundle and Renovate can't rebuild it. A local Renovate extract confirms thatpep621now detectsuv.lock.docs/DEVELOPMENT.mdsetup andCLAUDE.mdupdated.🤖 Generated with Claude Code