Skip to content

chore: sync python_template (one ruff from pixi, no pylint) - #16

Merged
blooop merged 273 commits into
mainfrom
chore/template-sync-ruff
Oct 26, 2026
Merged

blooop merged 273 commits into
mainfrom
chore/template-sync-ruff

Conversation

@blooop

@blooop blooop commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

This PR merges python_template main into scratch_env, so one ruff from pixi runs in CI, in the hooks and in pixi run lint.

Evidence

The dl run on this branch (dl blooop/scratch_env@chore/template-sync-ruff):

  • pixi run --locked ci → CI=0 (ruff check, format check, ty, 3 tests passed)
  • pixi run --locked -e <env> ci for each matrix env → py310=0, py311=0, py312=0, py313=0
  • pixi run --locked prek → PREK=0 (all hooks pass, ruff check and ruff format included)
  • pixi run --locked ruff --version → ruff 0.17.2; pixi.lock also has ruff 0.17.2
  • git status after the run is clean, so the lock is not stale. pixi lock --check passes.
  • git grep -i -E 'black|pylint|ruff-action|chartboost' finds no match outside pixi.lock.
  • GitHub CI on bcadda7 is green: ci py310–py313 and prek.

What this changes

  • Carries python_template#178 — one ruff from pixi; pylint removed and python_template#181 — init-host.sh creates ~/.config/gh; task fixes.
  • ruff is pinned to ruff==0.17.2 in the test feature (it was >=0.5.0,<=0.9.4). The prek hooks are repo: local and run pixi run --locked ruff ...; the old ruff-pre-commit hook with rev: v0.8.2 is gone. CI runs pixi run ci, which runs ruff-check, format-check, ty and coverage.
  • pre-commit is replaced by prek (task, hook workflow prek.yaml, dependabot group).
  • Adds the template's ty, the .claude/ setup, the devpod tasks and the newer test pins.
  • Keeps this repo's deletions: no .devcontainer/Dockerfile, no .devcontainer/ci/, no devcontainer.yml image publishing, no devcontainer_use_*.sh scripts or dev-use-* tasks.
  • Removes scripts/install_pixi.sh, as the template did. Nothing calls it.
  • .github/dependabot.yml drops the template-only docker entry, because this repo has no Dockerfile.
  • The README gets the "One ruff version" section and a Python badge for 3.10 to 3.13, the CI matrix.

How I checked it

I merged template/main by hand and resolved the conflicts (template side for lint, CI, test and devcontainer files; this repo's name, README, numpy dependency and deletions kept). I ran pixi lock with pixi 0.83.0, then ran CI in every matrix env and prek in a fresh dl workspace.

A second reviewer checked bcadda7 in a new dl workspace: pixi lock --check passes, pixi run --locked ci passes (3 tests), and pixi run --locked prek passes every hook. No hook or CI step runs ruff outside pixi. initializeCommand runs .devcontainer/claude-code/init-host.sh. No new ruff finding.

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.

Review notes

  • .gitattributes now says pixi.lock merge=ours, and the setup-git-merge-driver task is gone, so git has no ours merge driver. git then merges pixi.lock as text, and a lock conflict makes the merge exit 1. Under set -eo pipefail, scripts/update_from_template.sh then stops at the merge, so its checkout --ours and pixi update lines do not run. Also, .claude/README.md says SessionStart "Sets up merge drivers for lockfiles", but .claude/hooks/SessionStart sets up no merge driver. This is a known template issue, tracked in python_template, and this PR does not fix it.
  • Dependabot changes only pyproject.toml. Run pixi lock on its PR before you merge it, or locked: true fails CI.

🤖 Generated with Claude Code

Summary by Sourcery

Synchronize the project tooling with the Python template by consolidating quality checks around pixi, modernizing development workflows, and improving devcontainer support.

New Features:

  • Add Claude Code and Ralph orchestrator configuration with pixi-based development workflows.
  • Support devpod-based development tasks and Python 3.10–3.13 CI environments.
  • Add shell tooling and improved host/devcontainer setup support.

Bug Fixes:

  • Ensure devcontainer host bind-mount directories, including GitHub CLI configuration, are created before startup.
  • Improve project renaming and template-update scripts for safer substitutions, lockfile regeneration, and configurable branches or remotes.

Enhancements:

  • Standardize linting and formatting on a single pinned Ruff version sourced from pixi across tasks, hooks, and CI.
  • Replace pre-commit with prek and add type checking with ty to the lint and CI workflows.
  • Refresh development dependency pins, CI actions, editor tasks, documentation, and project metadata.

CI:

  • Replace the pre-commit workflow with a locked pixi-backed prek workflow and update CI action versions.

Documentation:

  • Document the single Ruff version policy and expand Python version support in the README.
  • Add guidance for Claude Code, agent workflows, and available pixi development commands.

Tests:

  • Expand devcontainer tests to validate bind-mount setup and idempotent preservation of existing host configuration.

Chores:

  • Remove the obsolete pixi installation script and update the pixi lockfile and changelog.

blooop and others added 30 commits August 2, 2025 10:33
…ev/setup-pixi-0.8.14

build(deps): bump prefix-dev/setup-pixi from 0.8.8 to 0.8.14
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
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
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
blooop and others added 27 commits August 24, 2026 19:44
The previous two commits removed the ~/.config/gh bind mount and justified it,
in devcontainer.json, AGENTS.md and both commit messages, with the claim that
the mount never worked because gh keeps its token in the system keyring, so the
mounted hosts.yml carries no oauth_token.

That claim is false on this host. ~/.config/gh/hosts.yml contains a real
oauth_token, and in a running container using the mount, with GH_TOKEN and
GITHUB_TOKEN unset, `gh auth status` reports:

    Logged in to github.com account blooop (/home/vscode/.config/gh/hosts.yml)

gh writes to a keyring only when one is available and falls back to the file
otherwise, so the keyring claim was true of some environment but not this one,
and it was generalised into the file as if it always held.

Nothing broke under `dl`, which is why it went unnoticed: `dl` forwards
GH_TOKEN, devpod applies workspace env after the devcontainer's own, and the
env token wins wherever both are present. The containers that lost gh auth
they previously had are the ones opened another way -- a plain `devpod up`, or
VS Code's Reopen in Container. devlaunch's own README says to keep the mount
for exactly those entry paths.

So the mount comes back as the third entry in mounts, the Dockerfile creates
/home/vscode/.config/gh for it again, and the comment above the mounts block
now says why it is kept rather than why it was dropped. AGENTS.md again states
that host gh authentication is shared through the mount, and adds that a
forwarded GH_TOKEN outranks it under `dl`.

The ~/.ssh removal is untouched and was verified separately: devpod forwards
an ssh agent at a socket path of its own, and in a live container `ssh-add -l`
lists the host key and `git ls-remote` against a git@github.com: origin
succeeds with an empty ~/.ssh. The old hardcoded
SSH_AUTH_SOCK=/home/vscode/.ssh/agent.sock overrode that working forwarded
socket, so it stays gone too.
…rek-install

Two defects, both found by launching the container rather than by reading the
JSON, and both invisible to CI.

The inline postCreateCommand ended in `pixi run prek-install`. Three repos in
this family define that task; the rest do not, and there `pixi run` exits 127,
which fails the lifecycle hook and so fails container creation outright -- the
workspace never comes up at all. Syncing this file to descendants therefore
broke every descendant that lacks the task. postCreateCommand now calls
.devcontainer/post-create.sh, which runs the task only where it exists.

The second is a consequence of not mounting ~/.ssh. That decision is still
right -- devpod forwards an agent, so the private key does not belong in the
container -- but the agent carries authentication, not host identity. On a
genuinely fresh container there is no known_hosts, and the first git operation
over an ssh remote dies with "Host key verification failed". An interactive
user can click through the prompt; a script, an agent or CI inside the
container cannot. post-create.sh seeds known_hosts with ssh-keyscan for
whatever host origin actually points at, and is non-fatal without network.

The comment above mounts claimed `git ls-remote` succeeds from an empty
~/.ssh. It does not, on a fresh container; the container that produced that
observation had already accepted github.com's key. Corrected.

Moving the body out of the JSON also shrinks the line descendants have to
merge, which is the same reasoning that put "name" at the bottom of the file.
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
@sourcery-ai

sourcery-ai Bot commented Oct 26, 2026

Copy link
Copy Markdown

Sorry @blooop, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 11 hours and 52 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Oct 26, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR synchronizes the repository with the template to establish one locked Pixi-managed Ruff across tasks, hooks, and CI, migrate from pre-commit to prek, refresh development and devcontainer tooling, and expand the tested Python matrix without changing package functionality.

Sequence diagram for locked CI quality checks

sequenceDiagram
    participant GitHub as GitHub Actions
    participant Pixi
    participant Env as Pixi environment
    participant CI as pixi run ci
    participant Ruff
    participant Ty
    participant Tests

    GitHub->>Pixi: setup-pixi locked true
    Pixi->>Env: Install from pixi.lock
    GitHub->>CI: pixi run -e environment ci
    CI->>Ruff: ruff check .
    CI->>Ruff: ruff format --check .
    CI->>Ty: ty check --respect-ignore-files .
    CI->>Tests: coverage run -m pytest
    Tests-->>CI: Test and coverage result
Loading

File-Level Changes

Change Details Files
Consolidates Ruff execution around the Pixi-managed, locked toolchain and replaces pre-commit with prek across local hooks and CI.
  • Pins Ruff 0.17.2 and updates the lockfile and test tooling pins.
  • Converts Ruff hooks to local hooks invoking the locked Pixi environment.
  • Adds lint, format, type-check, coverage, and prek tasks to CI and updates workflow actions.
  • Replaces the pre-commit workflow and Dependabot grouping with prek equivalents.
pyproject.toml
pixi.lock
.pre-commit-config.yaml
.github/workflows/ci.yml
.github/workflows/pre-commit.yaml
.github/workflows/prek.yaml
.github/dependabot.yml
README.md
Synchronizes development and agent tooling from the template while retaining this repository’s project-specific exclusions.
  • Adds Claude Code configuration, agent instructions, Ralph configuration, and development commands.
  • Adds devpod, GitHub CLI, shellcheck, ty, and Ralph dependencies/tasks.
  • Removes the Pixi installer script and preserves the repository’s Docker/devcontainer deletions.
  • Updates editor tasks/extensions, project metadata, documentation, and changelog.
.claude/
AGENTS.md
CLAUDE.md
PROMPT.md
ralph.yml
pyproject.toml
scripts/install_pixi.sh
.vscode/
CHANGELOG.md
docs/intro.rst
Improves devcontainer initialization and supporting shell automation for reproducible local development.
  • Creates both Claude and GitHub CLI host bind-mount directories before container startup.
  • Updates devcontainer configuration and adds tests for bind-source discovery and idempotent initialization.
  • Hardens setup, project-renaming, and template-sync scripts with strict shell settings, safer quoting, configurable inputs, and lockfile regeneration.
.devcontainer/claude-code/init-host.sh
.devcontainer/devcontainer.json
test/test_devcontainer.py
scripts/setup_host.sh
scripts/rename_project.sh
scripts/update_from_template.sh
scripts/launch_vscode.sh
.gitattributes
.gitignore
Updates the supported Python matrix and test formatting to match the synchronized template.
  • Adds Python 3.12 and 3.13 to the documented matrix and CI coverage.
  • Refreshes test dependency pins and applies formatting/import cleanup.
README.md
pyproject.toml
test/test_basic.py
test/test_devcontainer.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@blooop
blooop merged commit daf21cd into main Oct 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants