Repository navigation
Conversation
Reviewer's GuideMoves development containers from the dead Python 3.10 Docker base to the shared Ubuntu 26.04 python_template image, using pixi for a locked Python 3.12 test environment while adding a local Claude Code feature and its host-mounted configuration workflow; package code, CI, and publishing remain unchanged. Sequence diagram for cold devcontainer creation and testingsequenceDiagram
actor Developer
participant DevContainer
participant SharedImage
participant Repo
participant Pixi
Developer->>DevContainer: Create workspace
DevContainer->>SharedImage: Pull ghcr.io/blooop/python_template/devcontainer:latest
SharedImage-->>DevContainer: Ubuntu 26.04, pixi, git-lfs
DevContainer->>Repo: Run post-create.sh
Repo->>Pixi: install --frozen
Pixi-->>Repo: Locked Python 3.12 environment
Developer->>Pixi: run test
Pixi-->>Developer: 1 passed
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Owner
Author
Drop black and pylint from the dependabot dev-dependency group; the project uses ruff only.
…have pixi run dev-use-local and dev-use-prebuilt are not tasks here, the commented-out build block pointed at the deleted Dockerfile, and .devcontainer/ci/ lives only in python_template.
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.
This PR moves the devcontainer to the shared python_template image (Ubuntu 26.04). The container then does not trust emSign ECC Root CA - G3, and it starts under
dlagain. The PR also replaces black and pylint with ruff.Evidence
maindoes not start underdl. The build stops atRUN apt-get update && apt install git-lfswith exit code 100 after 15 s, because the yarn apt key on the deadpython:0-3.10image is gone. That base (Debian 11,ca-certificates 20210119) holds 1 emSign ECC Root CA - G3 file.dlworkspace of this branch at27d391a:Ubuntu 26.04.1 LTS, G3 count0,git-lfs/3.7.1, pixi 0.83.0.pixi run testgives1 passedon Python 3.12.git statusis clean after the cold create, so the LFS PDFs do not show as modified.ruffjob (lint andformat --check) passes.What this changes
.devcontainer/Dockerfile. Its base tagpython:0-3.10is dead..devcontainer/from blooop/python_template (withoutci/):"image": "ghcr.io/blooop/python_template/devcontainer:latest",post-create.sh(runspixi install --frozen), andclaude-code/. Thedevcontainer.jsoncomments name only the tasks and files that this repo has.[tool.pixi]config topyproject.toml: Python 3.12 from conda-forge, the package as an editable PyPI dependency, thetestextra as the default environment, and atesttask. It commitspixi.lock(format v7, written by pixi 0.83.0) and ignores.pixi/.buildjob and publishing do not change.blackjob and thepylintstep and addsruff format --check.pyproject.tomldrops black, pylint and their config. VS Code formats with ruff. Dependabot no longer groups black and pylint. The Python files get the ruff format and a few ruff fixes (import order, onenoqa: DTZ002).The shared image carries the CA fix, so this repo needs no CA block of its own.
How I checked it
I did not wait for the CI
buildjob on the last push.Merge danger
Door: two-way. A revert brings back the old Dockerfile and the black and pylint checks.
Blast radius: small. Only the devcontainer, the pixi dev setup and the lint tools change. The package, the tests and the CI build do not.
Review notes
testextra pinsruff>=0.0.280,<=0.1.3, so pixi installs ruff 0.1.3. CI useschartboost/ruff-action@v1, which runs the latest ruff (the format here is ruff 0.17.2).pixi run ruff format --check .flags 2 files, so the VS Code "autoformat" task undoes part of the format. A shared fix for all blooop repos comes later. This PR does not pin ruff.linux-64only, the same as python_template. The container does not start on an arm64 host.🤖 Generated with Claude Code