Repository navigation
chore: sync python_template (one ruff from pixi, no pylint) - #11
Merged
Merged
Conversation
Feature/shellcheck
Bumps [prefix-dev/setup-pixi](https://github.com/prefix-dev/setup-pixi) from 0.8.14 to 0.9.1. - [Release notes](https://github.com/prefix-dev/setup-pixi/releases) - [Commits](prefix-dev/setup-pixi@v0.8.14...v0.9.1) --- updated-dependencies: - dependency-name: prefix-dev/setup-pixi dependency-version: 0.9.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [pylint](https://github.com/pylint-dev/pylint), [pytest-cov](https://github.com/pytest-dev/pytest-cov), [pytest](https://github.com/pytest-dev/pytest), [hypothesis](https://github.com/HypothesisWorks/hypothesis), [ruff](https://github.com/astral-sh/ruff), [coverage](https://github.com/nedbat/coveragepy) and [pre-commit](https://github.com/pre-commit/pre-commit) to permit the latest version. Updates `pylint` to 3.3.8 - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](pylint-dev/pylint@v3.2.5...v3.3.8) Updates `pytest-cov` to 7.0.0 - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](pytest-dev/pytest-cov@v4.1.0...v7.0.0) Updates `pytest` to 8.4.2 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@7.4.0...8.4.2) Updates `hypothesis` to 6.140.2 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.104.2...hypothesis-python-6.140.2) Updates `ruff` to 0.13.2 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.5.0...0.13.2) Updates `coverage` to 7.10.7 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](coveragepy/coveragepy@7.5.4...7.10.7) Updates `pre-commit` to 4.3.0 - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](pre-commit/pre-commit@v0.1.0...v4.3.0) --- updated-dependencies: - dependency-name: pylint dependency-version: 3.3.8 dependency-type: direct:production dependency-group: dev-dependencies - dependency-name: pytest-cov dependency-version: 7.0.0 dependency-type: direct:production dependency-group: dev-dependencies - dependency-name: pytest dependency-version: 8.4.2 dependency-type: direct:production dependency-group: dev-dependencies - dependency-name: hypothesis dependency-version: 6.140.2 dependency-type: direct:production dependency-group: dev-dependencies - dependency-name: ruff dependency-version: 0.13.2 dependency-type: direct:production dependency-group: dev-dependencies - dependency-name: coverage dependency-version: 7.10.7 dependency-type: direct:production dependency-group: dev-dependencies - dependency-name: pre-commit dependency-version: 4.3.0 dependency-type: direct:production dependency-group: dev-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
…ev/setup-pixi-0.9.1 build(deps): bump prefix-dev/setup-pixi from 0.8.14 to 0.9.1
…1cb50033 build(deps): bump the dev-dependencies group with 7 updates
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…checkout-5 build(deps): bump actions/checkout from 4 to 5
only install extensions if inside a docker container
remove deps.yaml and upate rockerc
Bumps [prefix-dev/setup-pixi](https://github.com/prefix-dev/setup-pixi) from 0.9.1 to 0.9.2. - [Release notes](https://github.com/prefix-dev/setup-pixi/releases) - [Commits](prefix-dev/setup-pixi@v0.9.1...v0.9.2) --- updated-dependencies: - dependency-name: prefix-dev/setup-pixi dependency-version: 0.9.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
- Removed black from feature list (replaced with ruff for formatting) - Updated legacy section to remove outdated deps_rocker references - Clarified that ruff handles both formatting and linting
- Removed black from docs/intro.rst (replaced with ruff) - Updated .vscode/tasks.json autoformat task to use ruff and correct command - Removed black from .github/dependabot.yml dev-dependencies - Fixed scripts/rename_project.sh to remove non-existent deps.yaml reference
- Updated docs/intro.rst Python version badge to show 3.10-3.13 - Fixed license badge in intro.rst to use correct URL - Removed outdated flit tasks from .vscode/tasks.json - Fixed pixi version mismatch in .devcontainer/devcontainer.json (v0.48.2) - Updated CHANGELOG.md version to match pyproject.toml (0.2.0)
…3tezqW7h6y6TN1Utonb Update README and remove outdated information
…ev/setup-pixi-0.9.2 build(deps): bump prefix-dev/setup-pixi from 0.9.1 to 0.9.2
Bumps [prefix-dev/setup-pixi](https://github.com/prefix-dev/setup-pixi) from 0.9.2 to 0.9.3. - [Release notes](https://github.com/prefix-dev/setup-pixi/releases) - [Commits](prefix-dev/setup-pixi@v0.9.2...v0.9.3) --- updated-dependencies: - dependency-name: prefix-dev/setup-pixi dependency-version: 0.9.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
…ith 6 updates Updates the requirements on [pylint](https://github.com/pylint-dev/pylint), [pytest](https://github.com/pytest-dev/pytest), [hypothesis](https://github.com/HypothesisWorks/hypothesis), [ruff](https://github.com/astral-sh/ruff), [coverage](https://github.com/coveragepy/coveragepy) and [pre-commit](https://github.com/pre-commit/pre-commit) to permit the latest version. Updates `pylint` to 4.0.2 - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](pylint-dev/pylint@v3.2.5...v4.0.2) Updates `pytest` to 9.0.0 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@7.4.0...9.0.0) Updates `hypothesis` to 6.147.0 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.104.2...hypothesis-python-6.147.0) Updates `ruff` to 0.14.4 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.5.0...0.14.4) Updates `coverage` to 7.11.3 - [Release notes](https://github.com/coveragepy/coveragepy/releases) - [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst) - [Commits](coveragepy/coveragepy@7.5.4...7.11.3) Updates `pre-commit` to 4.4.0 - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](pre-commit/pre-commit@v0.1.0...v4.4.0) --- updated-dependencies: - dependency-name: pylint dependency-version: 4.0.2 dependency-type: direct:development dependency-group: dev-dependencies - dependency-name: pytest dependency-version: 9.0.0 dependency-type: direct:development dependency-group: dev-dependencies - dependency-name: hypothesis dependency-version: 6.147.0 dependency-type: direct:development dependency-group: dev-dependencies - dependency-name: ruff dependency-version: 0.14.4 dependency-type: direct:development dependency-group: dev-dependencies - dependency-name: coverage dependency-version: 7.11.3 dependency-type: direct:development dependency-group: dev-dependencies - dependency-name: pre-commit dependency-version: 4.4.0 dependency-type: direct:development dependency-group: dev-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
…dev/setup-pixi-0.9.3 build(deps): bump prefix-dev/setup-pixi from 0.9.2 to 0.9.3
…aa2820cf5 build(deps-dev): bump the dev-dependencies group across 1 directory with 6 updates
update pixi to workspace
This commit adds complete support for Claude Code online environment: - Add .claude/hooks/SessionStart: Automatically sets up pixi and dependencies - Add .claude/README.md: Comprehensive documentation for Claude Code usage - Add .claude/activate.sh: Manual environment activation script - Update README.md: Add Claude Code section with quick start guide The SessionStart hook automatically: - Installs pixi package manager if not present - Installs all project dependencies via pixi - Sets up pre-commit hooks - Configures git merge drivers This enables immediate development in Claude Code online without manual setup.
…EspHaNhB7a1XgjDiMd1B Set up template for Claude integration
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
The prek job failed on two findings in the new script: - SC2020: `tr ' ,' '\n\n'` duplicates the replacement char. tr pads a short set2 out to set1's length on its own, so one `\n` does the same job. - SC2043: `for task in prek-install` loops over a literal single word, which shellcheck reads as bad quoting. The list is meant to grow per repo, so it is now an array and the loop expands it.
fix(devcontainer): make launches zero-build and stop the merge conflict
The script aborted partway through on a fresh host regardless of Ubuntu version, leaving pixi, uv and the docker group setup uninstalled: - docker run hello-world ran before usermod -aG docker, so it hit a permission denied on the socket and set -e killed the script. The group setup now happens right after the docker install, and the smoke tests run under sudo. - sudo groupadd docker always failed, since docker-ce already creates the group. It is now guarded with getent. - newgrp docker at the end would have spawned an interactive subshell. Ubuntu 26.04 ships neither sg nor newgrp, so this is gone in favour of a "log out and back in" message. Ubuntu 26.04 specifics: - download.docker.com does publish a resolute suite, so $VERSION_CODENAME still resolves, but the script now falls back to noble if the host's codename has not been published yet. - nvidia-docker2 is dropped. It is deprecated, frozen at 2.14.0 and no longer in NVIDIA's docs; nvidia-container-toolkit alone is what nvidia-ctk runtime configure needs. Other fixes: - The NVIDIA half is skipped unless nvidia-smi -L succeeds, with a hint to install a driver first, rather than installing a toolkit that every GPU container then fails against. - The conflicting-package removal is a single apt-get remove -y instead of a loop without -y that prompted mid-script. - gpg --dearmor gains --yes so re-runs do not prompt, and the pixi completion line is only appended to .bashrc once. - Added a GPU smoke test using ubuntu:$VERSION_ID. A plain ubuntu image avoids pinning a CUDA version, since the toolkit injects nvidia-smi and the driver libraries from the host. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
fix(setup_host): make the script work on ubuntu 26.04
The base image's ca-certificates (20240203) still trusts emSign ECC Root CA - G3, whose intermediates had their private keys cracked (CVE-2026-111943). Upgrade ca-certificates in the image and fail the build if G3 is still present.
fix(devcontainer): drop the compromised emSign ECC Root CA - G3
mcr.microsoft.com/devcontainers/base:ubuntu-24.04 has not been rebuilt since 2025-10-16 and ships ca-certificates 20240203. 3-ubuntu26.04 is a maintained tag.
chore(devcontainer): move the base image to Ubuntu 26.04
… pixi.lock The image moves from pixi 0.75.0 to 0.83.0. Post-create installs and runs tasks with --frozen, so a fresh workspace is not dirty before anyone touches it (pixi 0.83 rewrites a version-6 lock, and dl rm refuses a dirty clone). The lock is rewritten to version 7 by pixi 0.83; the package set does not change.
Template children keep LFS rules in .gitattributes; without git-lfs on the system PATH, git status and git commit fail in a repo that stores files in LFS (ArjanCodesSoftwareDesignerMindset).
chore(devcontainer): pixi 0.83.0 and git-lfs; keep post-create from rewriting pixi.lock
Pin ruff==0.17.2 in pyproject.toml as the single source. The prek ruff hooks become local hooks that run ruff from the pixi env, and the prek workflow installs the locked pixi env instead of prek-action. ci and lint now run ruff check and ruff format --check. Remove pylint.
… ruff setup-pixi with frozen: true and pixi run --frozen use pixi.lock as it is, without checking it against pyproject.toml. Dependabot bumps the ruff pin in pyproject.toml only (see #173), so CI then passed while it ran the old ruff from the lock: the pin and the ruff that ran differed. Use locked: true in ci.yml and prek.yaml, and pixi run --locked in the prek hooks and the prek job. A pin that the lock does not match now fails with 'lock file not up-to-date with the workspace'.
ci: run one pinned ruff in CI, pixi tasks and prek hooks
devcontainer.json bind-mounts ~/.config/gh and ~/.claude, but init-host.sh created only ~/.claude. docker refuses a bind mount whose source does not exist, so a host that never ran `gh auth login` could not create the container. Children fixed this in their own copies (blooop/dbw@56511c8, blooop/mcp-devtasks@d2942da); a template sync would have taken the fix away again. test/test_devcontainer.py runs init-host.sh with a scratch HOME and checks every ${localEnv:HOME} bind source in devcontainer.json exists after it, so a new mount without a matching mkdir fails CI.
The comments named the dev-use-local / dev-use-prebuilt pixi tasks, the Dockerfile and .devcontainer/ci/ as if every repo had them. A child cut down to devcontainer.json + post-create.sh has none of them, and the comment came along on every template sync. Mark those parts as python_template's, and say where the bind-mount sources come from. The commented build block stays: dev-use-local uncomments it.
…e-only check-manifest is no longer a dependency. The docker entry watches .devcontainer/Dockerfile, which children on the prebuilt image do not have.
pytest is only on PATH inside the pixi env, so the bare call failed in the devcontainer.
The regex needed source= before type=bind, so a new ~/ bind mount written in the other order passed the test while init-host.sh never created it. Parse each mount string into its key=value fields instead.
…n and post-create.sh The template-only comment described a child that kept two files; with initializeCommand pointing at claude-code/init-host.sh, that child cannot create its container.
fix: devcontainer starts without ~/.config/gh; template-only notes
Reviewer's GuideSynchronizes rerun_examples with python_template by replacing disparate lint tooling with one locked Pixi-managed Ruff workflow, adding prek/ty and Python 3.13 CI, updating development and automation configuration, and preserving this repository’s devcontainer-specific exclusions. Sequence diagram for the locked prek validation workflowsequenceDiagram
participant PR as PullRequest
participant GitHub as GitHubActions
participant Pixi as Pixi
participant Prek as prek
participant Ruff as Ruff
PR->>GitHub: open or update pull request
GitHub->>Pixi: setup-pixi locked environment
GitHub->>Pixi: pixi run --locked prek --show-diff-on-failure
Pixi->>Prek: run -a
Prek->>Pixi: run --locked ruff check --fix --exit-non-zero-on-fix
Pixi->>Ruff: ruff check
Prek->>Pixi: run --locked ruff format
Pixi->>Ruff: ruff format
Flow diagram for the updated Pixi CI pipelineflowchart LR
Start[CI workflow] --> Matrix[Python 3.10 to 3.13 matrix]
Matrix --> Install[setup-pixi with locked environment]
Install --> RuffCheck[ruff-check]
RuffCheck --> FormatCheck[format-check]
FormatCheck --> Ty[ty]
Ty --> Coverage[coverage and tests]
Coverage --> Result[CI result]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
… does not have devcontainer.json now says the claude-code feature is declared in python_template's .devcontainer/ci/devcontainer.json. The claude-code README and TROUBLESHOOTING still named it as a local path, which does not exist in rerun_examples.
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 merges python_template main into rerun_examples, so one ruff from pixi runs in CI, in the hooks and in
pixi run lint.Evidence
This change is tooling, CI and docs only. The package code does not change. The evidence is the runs of the project's own checks on this branch:
pixi run --locked ci→CI=0(ruff check, format check, ty, 3 tests passed). Run onb5d2a01indl blooop/rerun_examples@chore/template-sync-ruff, and again onaf26536in a fresh clone.pixi run --locked prek→PREK=0(all hooks pass, ruff check and ruff format included). Same two runs.pixi run --locked ruff --version→ruff 0.17.2.pixi.lockalso has ruff0.17.2, andpixi lock --checkpasses.git grep -i -E 'black|pylint|ruff-action'finds no match outsidepixi.lock(the matches there are hypothesis extras)."$HOME/.config/gh"removed frominit-host.sh,test_init_host_creates_every_home_bind_sourcefails. The test catches the bug that python_template#181 fixed.What this changes
ruff==0.17.2in the test feature. The prek hooks arerepo: localand runpixi run --locked ruff .... CI runspixi run ci, which runsruff-check,format-check,tyand coverage.ruff.toml, ty, and the py313 environment (rerun_examples has no dependency that blocks 3.13).devenvpixi feature and itscode/code-nocachetasks. python_template main has nodevenvfeature either.scripts/launch_vscode.sh(now the same as the template's) installsdeps-rockerin its own venv, and the VS Code tasks call the script directly, so nothing needs thedevenvenvironment.setup-git-merge-drivertask, as the template did.scripts/install_pixi.shand its line inrerun_examples.deps.yaml. The template removed the script in python_template@60ed1945 — remove pixi script and use pixi-rocker instead;rockerc.yamlnow addspixi.devcontainer_use_*.shordev-use-*. rerun_examples main never had those scripts or tasks; they are template-only. The PR adds a template-only comment in.devcontainer/devcontainer.jsonand a README line that say so..devcontainer/Dockerfile, no.devcontainer/ci/, nodevcontainer.ymlimage publishing..github/dependabot.ymldrops the template-only docker entry, because this repo has no Dockerfile..devcontainer/claude-code/README.mdandTROUBLESHOOTING.mdnow say that the.devcontainer/ci/devcontainer.jsonthat declares the claude-code feature is python_template's file. This repo does not have that file.How I checked it
The worker merged
template/mainby hand and resolved the conflicts (template side for lint, CI and devcontainer files; this repo's name and deletions kept), then ranpixi lockwith pixi 0.83.0 and the checks above in a fresh dl workspace. A second reviewer compared each removed item with python_template main and with rerun_examples main, and re-ranciandprekafter the docs fix.Merge danger
Door: two-way. A revert of the merge commit undoes it.
Blast radius: small. It changes only tooling, CI and docs; the package code does not change. If a removed task was in use,
pixi run codestops;scripts/launch_vscode.shdoes the same job.Review notes
.gitattributeshaspixi.lock ... merge=ours, but nothing defines theoursmerge driver now thatsetup-git-merge-driveris gone. git then does a text merge ofpixi.lock. python_template has the same line, so the fix belongs there.scripts/update_from_template.shworks around it withgit checkout --ours.Auto-publishworkflow on main fails with a PyPI403 Forbidden. This PR does not touch it.🤖 Generated with Claude Code