Repository navigation
ci: build devcontainer from Dockerfile and verify setup in CI - #1
Open
NicoleNageli wants to merge 1 commit into
Open
NicoleNageli wants to merge 1 commit into
NicoleNageli wants to merge 1 commit into
Conversation
- Rebuild .devcontainer/Dockerfile on mcr.microsoft.com/devcontainers/python, copy in uv, and install deps from pyproject.toml/uv.lock (replaces the removed requirements.txt). - Point devcontainer.json at the Dockerfile with the repo root as context. - Run post_install with bash to match its shebang, and mark the workspace as a git safe.directory so pre-commit install works on Docker Desktop hosts. - Extend the devcontainer CI runCmd to check that the setup ran: tool versions, the pre-commit hook, and the Oh My Zsh plugins. Fixes TheAlgorithms#15695 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Description
Makes the devcontainer CI build
.devcontainer/Dockerfileand check that thecontainer setup scripts actually ran.
Dockerfile: based onmcr.microsoft.com/devcontainers/python, copies inuv, and installs dependencies from
pyproject.toml/uv.lock(replaces theremoved
requirements.txt).devcontainer.json: builds from the Dockerfile with the repo root as thecontext.
post_installnow runs with bash to match its shebang.post_install: marks the workspace as a gitsafe.directorysopre-commit installworks on Docker Desktop hosts.devcontainers/cinow checks python3/uv/ruff/pre-commit versions,the pre-commit git hook, and the Oh My Zsh plugins, not just
uv --version.Checklist
ruff checkpassespre-commit run --all-filespasses, exceptvalidate-filenames, whichcan't start on the Windows host (no
python3). The script itself passeswhen run with
python./opt/venvwith free-threaded 3.15.Docker Desktop run hit the
safe.directoryissue this PR fixes).Fixes TheAlgorithms#15695
🤖 Generated with Claude Code