Add devcontainer configuration for zha-device-handlers project #4509
+115
−0
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
Add a VS Code devcontainer configuration for
zha-device-handlersto make local development and testing easier and more reproducible:.devcontainer/Dockerfilebased onmcr.microsoft.com/devcontainers/python:1-3.12with common build dependencies for Python packages..devcontainer/devcontainer.jsonto configure the workspace, recommended extensions and apostCreateCommandthat runsscript/setupto create the virtualenv and install dev dependencies..devcontainer/README.mddocumenting what the devcontainer does and how to use it with VS Code / Dev Containers.This change is purely for development workflow convenience and does not affect any runtime code, quirks, or released packages.
Motivation: make onboarding easier for contributors, have a reproducible dev environment, and keep the local development environment of contributors (including mine) clean and less cluttered.
Additional information
.devcontainersetup is desired in this repository; if this is not welcome or does not fit the maintainers' preferences, I’m happy to adjust the PR or close it again.Device diagnostics
Not applicable – this PR does not add or modify any device quirks and only introduces development tooling (.devcontainer).
Checklist
pre-commitchecks pass / the code has been formatted using Black