Skip to content

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

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

blooop merged 418 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 timelapse, so one ruff from pixi runs in CI, in the hooks and in pixi run lint.

Evidence

This change is tooling, CI and docs. The app keeps the same behavior, so the evidence is the checks, not a graph.

  • CI on b4f47d8 is green: ci (py310), ci (py311), ci (py312) and prek (CI run, prek run).
  • CI on the earlier head 9731331 was red: ci (py312) failed and the other jobs were cancelled (job log). b4f47d8 fixes that failure (see below).
  • In the dl workspace (dl blooop/timelapse@chore/template-sync-ruff), pixi run --locked -e {default,py310,py311,py312} ci gives CI=0 with 3 tests passed in each environment. pixi run --locked prek gives PREK=0. pixi lock --check passes.
  • pixi run --locked ruff --version gives ruff 0.17.2, and pixi.lock has ruff 0.17.2.
  • git grep -i -E 'black|pylint|ruff-action|chartboost' finds no match outside pixi.lock. The matches in pixi.lock are optional extras of other packages. pixi does not install them.
  • timelapse.py must not change behavior. No test calls BenchTimelapse.__call__, so no run covers the ffmpeg path. The claim rests on the code: see the subprocess.run bullet below.

What this changes

  • The merge carries python_template#178 — one ruff from pixi; pylint removed and python_template#181 — init-host.sh creates ~/.config/gh; task fixes. timelapse was about 400 template commits behind. The merge also brings the other template changes: prek, ty, ruff.toml, the hatchling build, .claude/ and a py312 environment.
  • The test feature pins ruff==0.17.2. The prek hooks are repo: local and run pixi run --locked ruff .... CI runs pixi run ci, which runs ruff-check, format-check, ty and coverage.
  • The CI matrix is now py310, py311 and py312. Before this PR, main tested only py310 and py311.
  • pyproject.toml pins holobench = ">=1.27.0,<1.28" and moviepy = ">=1.0.3,<2" (b4f47d8). The py312 environment has no solve group, so pixi solved it apart from default and picked the newest packages:
    • holobench 1.146 has no BenchRunCfg.level and no use_sample_cache, so ty failed.
    • moviepy 2 has no moviepy.editor, so the import in test/test_benchtimelapse.py failed.
    • The pins hold the versions that default, py310 and py311 already had in the lock.
  • This PR does not add py313. holobench 1.27 needs pandas==2.2.2, which has no Python 3.13 wheel, and the source build fails. To support py313, timelapse/*.py must move to holobench 1.146 and moviepy 2. That is an app change for a separate PR.
  • The merge keeps this repo's own name, version, holobench and moviepy dependencies, and README badges.
  • The merge keeps this repo's deletions: no .devcontainer/Dockerfile and no test/test_basic.py. a4fe234 removed test/test_basic.py long ago, because that test was for the template's example class. The merge does not bring it back.
  • The merge does not add the template-only files: .devcontainer/ci/, devcontainer.yml image publishing, the devcontainer_use_*.sh scripts and the dev-use-* tasks. The README devcontainer section and .devcontainer/claude-code/{README,TROUBLESHOOTING}.md point to the python_template files.
  • The PR deletes three files that nothing uses:
    • .pre-commit-config-unused.yaml held an old ruff-pre-commit hook with rev: v0.4.9 and a conventional-pre-commit hook. No tool read this file. The template's .pre-commit-config.yaml replaces it and runs ruff through pixi.
    • python_template.deps.yaml and scripts/install_pixi.sh are template leftovers. timelapse.deps.yaml no longer runs scripts/install_pixi.sh, and no file refers to either one.
  • .github/dependabot.yml drops the template-only docker entry, because this repo has no Dockerfile.
  • Code fixes that the new checks ask for, each in its own commit:
    • style: ruff import sort (I001) and end-of-file fixes. Autofix only.
    • convert.sh is now executable. A comment tells shellcheck that STEP_SECONDS is for the ffmpeg notes that are commented out.
    • timelapse.py runs ffmpeg with subprocess.run(cmd, shell=True, check=False) instead of os.system(cmd) (9731331). ty flags os.system as deprecated. Both calls give the same string to /bin/sh -c, so the quoting is the same. The code ignored the return value before and after, and a failure does not raise. One small difference: os.system ignores Ctrl+C in Python while ffmpeg runs, and subprocess.run does not.

How I checked it

I merged template/main by hand and resolved the conflicts. The template side won for lint, CI and devcontainer files. This repo kept its name, dependencies and deletions. I ran pixi lock with pixi 0.83.0. Then I ran CI and prek in a fresh dl workspace until both passed.

A review then found the py312 failure on 9731331. I reproduced the moviepy.editor import failure in the dl workspace, added the pins, locked again, and ran ci in all four environments. I also removed "$HOME/.config/gh" from init-host.sh as a mutant: test_init_host_creates_every_home_bind_source failed, so the test catches that break. I restored the file after.

I did not run the ffmpeg path, because no test drives it.

Merge danger

Door: two-way. A revert of the merge commit and the fix commits undoes it.
Blast radius: small. The PR changes tooling, CI and docs. The only code change is os.system to subprocess.run, with the same shell and the same string. If branch protection requires a ci (py313) check, that check no longer runs and the merge stays blocked.

Review notes

  • The README Python badge still says 3.10 | 3.11. CI now also tests 3.12.
  • .gitattributes sets pixi.lock merge=ours, but nothing defines a merge.ours driver, so git merges pixi.lock as plain text. This comes from the template, and the template tracks the fix.
  • The header of .pre-commit-config.yaml still says to run pre-commit. The repo uses prek. This also comes from the template.
  • The Auto-publish workflow on main fails with a PyPI 403 Forbidden. This PR does not touch it.

🤖 Generated with Claude Code

blooop and others added 30 commits September 1, 2025 10:54
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
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>
…/checkout-6

build(deps): bump actions/checkout from 5 to 6
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.3
- [Release notes](https://github.com/pylint-dev/pylint/releases)
- [Commits](pylint-dev/pylint@v3.2.5...v4.0.3)

Updates `pytest` to 9.0.1
- [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.1)

Updates `hypothesis` to 6.148.3
- [Release notes](https://github.com/HypothesisWorks/hypothesis/releases)
- [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.104.2...hypothesis-python-6.148.3)

Updates `ruff` to 0.14.7
- [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.7)

Updates `coverage` to 7.12.0
- [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.12.0)

Updates `pre-commit` to 4.5.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.5.0)

---
updated-dependencies:
- dependency-name: pylint
  dependency-version: 4.0.3
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: pytest
  dependency-version: 9.0.1
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: hypothesis
  dependency-version: 6.148.3
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: ruff
  dependency-version: 0.14.7
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: coverage
  dependency-version: 7.12.0
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: pre-commit
  dependency-version: 4.5.0
  dependency-type: direct:development
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
…0279efebc

build(deps-dev): bump the dev-dependencies group with 6 updates
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
# Conflicts:
#	.devcontainer/Dockerfile
#	.devcontainer/claude-code/init-host.sh
#	.devcontainer/devcontainer.json
#	.github/dependabot.yml
#	.vscode/extensions.json
#	.vscode/settings.json
#	.vscode/tasks.json
#	README.md
#	docs/intro.rst
#	pixi.lock
#	pyproject.toml
#	scripts/rename_project.sh
#	test/test_basic.py
#	test/test_devcontainer.py
@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 12 hours and 18 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

Synchronizes timelapse with the python_template while preserving repository-specific code and dependencies, centralizing Ruff/prek/ty in a locked pixi environment, expanding CI coverage, refreshing development tooling and devcontainer support, and making the small code changes required by the new checks.

Sequence diagram for locked CI quality checks

sequenceDiagram
    participant GitHub as GitHub Actions
    participant Pixi as pixi
    participant Ruff as ruff
    participant Ty as ty
    participant Tests as pytest and coverage

    GitHub->>Pixi: setup-pixi locked
    GitHub->>Pixi: pixi run ci
    Pixi->>Ruff: ruff check .
    Pixi->>Ruff: ruff format --check .
    Pixi->>Ty: ty check --respect-ignore-files .
    Pixi->>Tests: coverage run -m pytest
    Tests-->>GitHub: coverage report
Loading

Sequence diagram for ffmpeg subprocess execution

sequenceDiagram
    participant Timelapse as BenchTimelapse
    participant Subprocess as subprocess
    participant Shell as Shell
    participant FFmpeg as ffmpeg

    Timelapse->>Subprocess: subprocess.run(cmd, shell=True, check=False)
    Subprocess->>Shell: execute cmd
    Shell->>FFmpeg: run ffmpeg command
    FFmpeg-->>Shell: exit status
    Shell-->>Subprocess: return without raising
    Subprocess-->>Timelapse: continue encoding workflow
Loading

File-Level Changes

Change Details Files
Consolidate linting and type-checking around a locked pixi-managed toolchain.
  • Pin Ruff 0.17.2 and add prek and ty to the test feature.
  • Replace versioned Ruff hooks with local hooks invoking the pixi environment.
  • Update pixi tasks so lint, CI, formatting, coverage, and hook workflows use the shared tools.
  • Add Ruff configuration and regenerate the lockfile.
pyproject.toml
pixi.lock
ruff.toml
.pre-commit-config.yaml
Synchronize CI and dependency automation with the updated template workflow.
  • Expand the CI matrix from Python 3.10–3.11 to 3.10–3.13.
  • Run prek in a separate pull-request workflow using the locked pixi environment.
  • Update setup-pixi, checkout, Codecov, and Dependabot configuration.
  • Remove obsolete template dependency and pixi-install scripts.
.github/workflows/ci.yml
.github/workflows/prek.yaml
.github/dependabot.yml
timelapse.deps.yaml
scripts/install_pixi.sh
Adopt the template's development, devcontainer, and agent tooling while retaining timelapse-specific project content.
  • Add Claude Code configuration, agent instructions, Ralph configuration, and supporting development tasks.
  • Update devcontainer documentation and host initialization to create required bind-mount directories.
  • Refresh VS Code, README, rocker, setup, and launch scripts without adding template-only image publishing files.
  • Preserve this repository's name, dependencies, badges, and selected deletions.
.claude/
AGENTS.md
CLAUDE.md
PROMPT.md
ralph.yml
rockerc.yaml
.devcontainer/
README.md
.vscode/
scripts/launch_vscode.sh
scripts/setup_host.sh
Apply formatting and compatibility fixes required by the new checks.
  • Apply Ruff import-order and end-of-file fixes.
  • Make convert.sh executable and annotate its shellcheck handling.
  • Replace deprecated os.system invocation with subprocess.run while preserving shell execution and non-raising failure behavior.
convert.sh
timelapse/individual.py
timelapse/main.py
timelapse/run7.py
timelapse/sweep_settings.py
timelapse/timelapse.py
Improve template synchronization and project-renaming workflows.
  • Make template updates configurable, regenerate and commit the lockfile, and push the selected branch.
  • Harden project renaming with escaped substitutions, image-reference protection, metadata updates, and lock refresh.
scripts/update_from_template.sh
scripts/rename_project.sh
Update packaging metadata and devcontainer validation to match the synchronized template.
  • Switch the build backend to hatchling and add package inclusion and project metadata.
  • Add Python 3.12 and 3.13 environments and modernize dependency constraints.
  • Generalize devcontainer bind-mount parsing and add idempotence coverage for init-host.sh.
pyproject.toml
test/test_devcontainer.py
CHANGELOG.md

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

… timelapse

The new py312 and py313 environments are not in a solve group, so pixi
solved them fresh and took holobench 1.146 (no BenchRunCfg.level or
use_sample_cache) and moviepy 2 (no moviepy.editor). ty and the import in
test_benchtimelapse.py failed there. Pin both to the lines the code uses,
which every older environment already had locked.

holobench 1.27 pins pandas 2.2.2, which has no Python 3.13 wheel and does
not build from source, so py313 is dropped until the code moves to
holobench 1.146 and moviepy 2.
@blooop
blooop merged commit 0af15bf into main Oct 26, 2026
6 checks passed
@blooop
blooop deleted the chore/template-sync-ruff branch October 26, 2026 08:42
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