diff --git a/.claude/README.md b/.claude/README.md new file mode 100644 index 000000000..eb64faf47 --- /dev/null +++ b/.claude/README.md @@ -0,0 +1,104 @@ +# Claude Code Configuration + +This directory contains configuration for using this project with Claude Code, particularly in the online environment. + +## SessionStart Hook + +The `hooks/SessionStart` script automatically runs when a new Claude Code session begins. It: + +1. **Installs pixi** (if not already installed) - The package and environment manager +2. **Installs project dependencies** - All Python packages and tools defined in `pyproject.toml` +3. **Sets up prek hooks** - For automatic code quality checks +4. **Configures git** - Sets up merge drivers for lockfiles + +## Usage with Claude Code Online + +When you start a Claude Code online session, the SessionStart hook will automatically run and set up your environment. You'll see output indicating the setup progress. + +### Available Commands + +Once setup is complete, Claude can use these pixi tasks: + +#### Testing & Quality +- `pixi run test` - Run pytest tests +- `pixi run coverage` - Run tests with coverage report +- `pixi run lint` - Run ruff and pylint linters +- `pixi run format` - Format code with ruff + +#### CI Tasks +- `pixi run ci` - Run full CI pipeline (format, lint, test, coverage) +- `pixi run fix` - Auto-fix common issues (update lock, format, lint) + +#### Prek Hooks +- `pixi run prek` - Run all prek hooks +- `pixi run prek-update` - Update prek hook versions + +### How It Works + +1. **First session**: The hook installs pixi and all dependencies (may take a few minutes) +2. **Subsequent sessions**: The hook verifies the environment is ready (much faster) +3. **Environment activated**: All pixi commands are available to Claude + +### Troubleshooting + +If you encounter issues: + +1. **Dependencies not found**: Run `pixi install` manually +2. **Lockfile conflicts**: Run `pixi run update-lock` +3. **Prek issues**: Run `pixi run prek-update` +4. **Full reset**: Delete `.pixi` directory and restart session + +### Customization + +You can modify `hooks/SessionStart` to: +- Install additional tools +- Run custom setup scripts +- Configure environment variables +- Set up external services + +## Ralph Orchestrator + +This project includes [ralph-orchestrator](https://github.com/mikeyobrien/ralph-orchestrator), an autonomous agent orchestrator for managing complex multi-step tasks. + +### Installation + +Ralph is installed as a pixi dependency. After running `pixi install`, it's available in the environment. + +### Basic Usage + +```bash +# Initialize ralph (creates ralph.yml and PROMPT.md if not present) +pixi run ralph init + +# Plan a task (creates a spec file) +pixi run ralph plan "Implement feature X" + +# Run ralph with the current PROMPT.md +pixi run ralph run + +# Check ralph version +pixi run ralph --version +``` + +### Configuration Files + +- `ralph.yml` - Main configuration (event loop, hats, backends) +- `PROMPT.md` - Task description for ralph to execute +- `specs/` - Directory for task specifications + +### Customization + +Edit `ralph.yml` to customize: +- `event_loop.max_iterations` - Maximum iterations before stopping +- `event_loop.max_runtime_seconds` - Maximum runtime +- `cli.backend` - AI backend (claude, gemini, codex, etc.) +- `hats` - Define custom personas for multi-agent workflows + +See the [ralph-orchestrator documentation](https://github.com/mikeyobrien/ralph-orchestrator) for more details. + +## Learn More + +- [Claude Code Documentation](https://docs.claude.com/claude-code) +- [Pixi Documentation](https://pixi.sh) +- [Ralph Orchestrator](https://github.com/mikeyobrien/ralph-orchestrator) +- [Project README](../README.md) diff --git a/.claude/hooks/SessionStart b/.claude/hooks/SessionStart index 97214aeb0..215bf1637 100755 --- a/.claude/hooks/SessionStart +++ b/.claude/hooks/SessionStart @@ -2,7 +2,7 @@ # SessionStart hook for Claude Code online environment # This script sets up the Python development environment using pixi -set -e +set -eo pipefail echo "🚀 Setting up Python Template environment..." @@ -15,6 +15,7 @@ if ! command -v pixi &> /dev/null; then export PATH="$HOME/.pixi/bin:$PATH" # Source bashrc to get pixi in PATH (if bashrc was updated) + # shellcheck disable=SC1091 [ -f "$HOME/.bashrc" ] && source "$HOME/.bashrc" echo "✅ Pixi installed successfully" diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 93ac30e46..964c70027 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,6 +1,6 @@ FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04 -ARG PIXI_VERSION=v0.63.1 +ARG PIXI_VERSION=v0.65.0 RUN curl -L -o /usr/local/bin/pixi -fsSL --compressed "https://github.com/prefix-dev/pixi/releases/download/${PIXI_VERSION}/pixi-$(uname -m)-unknown-linux-musl" \ && chmod +x /usr/local/bin/pixi \ diff --git a/.devcontainer/ci/devcontainer.json b/.devcontainer/ci/devcontainer.json new file mode 100644 index 000000000..8ce683260 --- /dev/null +++ b/.devcontainer/ci/devcontainer.json @@ -0,0 +1,12 @@ +{ + "name": "python_template-build", + "build": { + "dockerfile": "../Dockerfile", + "context": "../.." + }, + "features": { + "../claude-code": {}, + // "ghcr.io/devcontainers/features/docker-in-docker:2": {}, + // "ghcr.io/devcontainers/features/common-utils:2": {} + } +} diff --git a/.devcontainer/claude-code/install.sh b/.devcontainer/claude-code/install.sh index 020018f39..a52d2b468 100755 --- a/.devcontainer/claude-code/install.sh +++ b/.devcontainer/claude-code/install.sh @@ -1,5 +1,5 @@ -#!/bin/sh -set -eu +#!/bin/bash +set -euo pipefail # Claude Code CLI Local Feature Install Script # Installs Claude Code via pixi and sets up configuration directories @@ -83,6 +83,7 @@ install_claude_code() { # Add pixi bin path to user's profile if not already there local profile="$TARGET_HOME/.profile" + # shellcheck disable=SC2016 local pixi_path_line='export PATH="$HOME/.pixi/bin:$PATH"' if [ -f "$profile" ] && ! grep -q '\.pixi/bin' "$profile"; then echo "$pixi_path_line" >> "$profile" @@ -93,6 +94,7 @@ install_claude_code() { # Workaround: pixi trampoline fails for bash scripts, so add env bin directly # This conditionally adds the path only if the env exists + # shellcheck disable=SC2016 local env_path_line='[ -d "$HOME/.pixi/envs/claude-shim/bin" ] && export PATH="$HOME/.pixi/envs/claude-shim/bin:$PATH"' if [ -f "$profile" ] && ! grep -q 'pixi/envs/claude-shim' "$profile"; then echo "# Workaround: pixi trampoline fails for bash scripts" >> "$profile" diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d03d971b2..0355e7533 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,8 +1,17 @@ { "name": "bencher", - "build": { - "dockerfile": "Dockerfile", - "context": ".." + // Uses the template's prebuilt image by default for fast startup. + // To build locally: pixi run dev-use-local + // To use this repo's own prebuilt image: pixi run dev-use-prebuilt + // "build": { + // "dockerfile": "Dockerfile", + // "context": ".." + // }, + "image": "ghcr.io/blooop/python_template/devcontainer:latest", + "features": { + "./claude-code": {}, + // "ghcr.io/devcontainers/features/docker-in-docker:2": {}, + // "ghcr.io/devcontainers/features/common-utils:2": {} }, "initializeCommand": ".devcontainer/claude-code/init-host.sh", "customizations": { @@ -14,16 +23,10 @@ "jjjermiah.pixi-vscode", "charliermarsh.ruff", "tamasfe.even-better-toml", - "mhutchie.git-graph" - ] + "mhutchie.git-graph", + "anthropic.claude-code" + ] } - }, - "features": { - "./claude-code": {} - // "ghcr.io/devcontainers/features/docker-in-docker:2": {} - // "ghcr.io/devcontainers/features/common-utils:2": {}, - // "ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}, - // "ghcr.io/jsburckhardt/devcontainer-features/codex:latest": {} }, "runArgs": [ "--network=host" @@ -38,7 +41,8 @@ "mounts": [ "source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume", "source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind", - "source=${localEnv:HOME}/.config/gh,target=/home/vscode/.config/gh,type=bind" + "source=${localEnv:HOME}/.config/gh,target=/home/vscode/.config/gh,type=bind", + "source=${localEnv:HOME}/.claude,target=/home/vscode/.claude,type=bind" ], "postCreateCommand": "sudo chown vscode .pixi && pixi install" } diff --git a/.github/dependabot.yml b/.github/dependabot.yml index edc33c1f7..8bf6fb96f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -45,6 +45,10 @@ updates: - "jupyter_bokeh" - "prek" - "check-manifest" + - package-ecosystem: "docker" + directory: "/.devcontainer" + schedule: + interval: "monthly" - package-ecosystem: github-actions directory: / schedule: diff --git a/.github/workflows/devcontainer.yml b/.github/workflows/devcontainer.yml new file mode 100644 index 000000000..9d9852c43 --- /dev/null +++ b/.github/workflows/devcontainer.yml @@ -0,0 +1,49 @@ +name: Devcontainer Image + +on: + push: + branches: ["main"] + paths: + - ".devcontainer/**" + - ".github/workflows/devcontainer.yml" + pull_request: + branches: ["main"] + paths: + - ".devcontainer/**" + - ".github/workflows/devcontainer.yml" + workflow_dispatch: + +permissions: + contents: read + packages: write + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Set image metadata + id: meta + run: | + SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7) + DATE=$(date +%Y-%m-%d) + echo "short_sha=$SHORT_SHA" >> "$GITHUB_OUTPUT" + echo "date=$DATE" >> "$GITHUB_OUTPUT" + + - name: Build and push devcontainer image + uses: devcontainers/ci@v0.3 + with: + configFile: .devcontainer/ci/devcontainer.json + imageName: ghcr.io/${{ github.repository }}/devcontainer + imageTag: latest,sha-${{ steps.meta.outputs.short_sha }},${{ steps.meta.outputs.date }} + cacheFrom: ghcr.io/${{ github.repository }}/devcontainer:latest + push: ${{ github.event_name != 'pull_request' && 'always' || 'never' }} diff --git a/.gitignore b/.gitignore index 4e509f552..4bd4a8ea1 100644 --- a/.gitignore +++ b/.gitignore @@ -193,3 +193,7 @@ docs/reference/ .devpod/ .devpod-internal/ +.ralph/ + +# Claude Code local settings (personal, not shared) +.claude/settings.local.json diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a0bffad8d..f37e3d554 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -48,6 +48,11 @@ repos: # Run the formatter. - id: ruff-format types_or: [ python, pyi ] + # Shell script linter + - repo: https://github.com/koalaman/shellcheck-precommit + rev: v0.11.0 + hooks: + - id: shellcheck # Checks for spelling mistakes - repo: https://github.com/codespell-project/codespell diff --git a/PROMPT.md b/PROMPT.md new file mode 100644 index 000000000..c9b9f1651 --- /dev/null +++ b/PROMPT.md @@ -0,0 +1,21 @@ +# Project Development Context + + +## Project Overview +[Describe your project here] + +## Development Commands + +- `pixi run test` - Run tests +- `pixi run lint` - Run linters (ruff, pylint, ty) +- `pixi run format` - Format code +- `pixi run ci` - Full CI pipeline + +## Quality Standards +- All tests must pass +- Code must pass linting +- Follow existing code patterns + +## Current Objectives + +1. [Your objective here] diff --git a/pixi.lock b/pixi.lock index c58ba7d45..8431c014a 100644 --- a/pixi.lock +++ b/pixi.lock @@ -29,6 +29,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.1-h35e630c_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.13.2-hf636f53_101_cp313.conda - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.13-8_cp313.conda + - conda: https://prefix.dev/blooop/linux-64/ralph-orchestrator-2.6.0-hb0f4dca_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-h853b02a_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/shellcheck-0.10.0-ha770c72_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/sqlite-3.48.0-h9eae976_1.conda @@ -62,7 +63,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/7a/34/259b28ea7a2a0c904b11cd36c79b8cef8019b26ee5dbe24e73b469dea347/greenlet-3.3.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/4f/ab/a6aa43d45ceb88adc0e8c1358fa6935c6e6a5895537431dec67524ca2ccd/holoviews-1.22.1-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/11/cd/ec193e471780dfad60e44ded5526c123695c1354910edd537d7aa1d22094/hvplot-0.12.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/c4/f7/5cc291d701094754a1d327b44d80a44971e13962881d9a400235726171da/hypothesis-6.151.9-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/c0/d9/53a8b53e75279a953fae608bd01025d9afcf393406c0da1dda1b7f5693c5/hypothesis-6.151.5-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/fb/fe/301e0936b79bcab4cacc7548bf2853fc28dced0a578bab1f7ef53c9aa75b/imageio-2.37.2-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/a0/2d/43c8522a2038e9d0e7dbdf3a61195ecc31ca576fb1527a528c877e87d973/imageio_ffmpeg-0.6.0-py3-none-manylinux2014_x86_64.whl @@ -131,7 +132,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/38/4c/ed65ac8c0bedd3af253cc1e63ae3fa8fb86fb0b34cfecaf12129e7c35dd0/rerun_notebook-0.30.0-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/77/b7/d533b8a77665fbf8aea1109fc488c89e74f0b6381baa1d7d5f99131f1dbe/rerun_sdk-0.30.0-cp310-abi3-manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/b7/de/f7192e12b21b9e9a68a6d0f249b4af3fdcdff8418be0767a627564afa1f1/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/a3/1d/5f56cae1d6c40b8a318513599b35ea4b075d7dc1cd1d04449578c29d1d75/ruff-0.15.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/8a/d9/0e3a81467a120fd265658d127db648e4d3acfe3e4f6f5d4ea79fac47e587/ruff-0.15.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/46/af/c5e286471b7d10871b811b72ae794ac5fe2989c0a2df07f0ec723030f5f5/scikit_learn-1.7.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl - pypi: https://files.pythonhosted.org/packages/f5/5f/f17563f28ff03c7b6799c50d01d5d856a1d55f2676f537ca8d28c7f627cd/scipy-1.17.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl @@ -144,7 +145,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/50/d4/e51d52047e7eb9a582da59f32125d17c0482d065afd5d3bc435ff2120dc5/tornado-6.5.4-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/16/e1/3079a9ff9b8e11b846c6ac5c8b5bfb7ff225eee721825310c91b3b50304f/tqdm-4.67.3-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/00/c0/8f5d070730d7836adc9c9b6408dec68c6ced86b304a9b26a14df072a6e8c/traitlets-5.14.3-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/3e/4a/a2ed209ef215b62b2d3246e07e833081e07d913adf7e0448fc204be443d6/ty-0.0.17-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/81/f9/3bbfbbe35478de9bcd63848f4bc9bffda72278dd9732dbad3efc3978432e/ty-0.0.19-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/61/73/d21edf5b204d1467e06500080a50f79d49ef2b997c79123a536d4a17d97c/uc_micro_py-2.0.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl @@ -184,6 +185,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.5-h2d0b736_3.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.1-h35e630c_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.10.16-he725a3c_1_cpython.conda + - conda: https://prefix.dev/blooop/linux-64/ralph-orchestrator-2.6.0-hb0f4dca_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-h853b02a_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/shellcheck-0.10.0-ha770c72_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/sqlite-3.48.0-h9eae976_1.conda @@ -218,7 +220,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/ad/55/9f1ebb5a825215fadcc0f7d5073f6e79e3007e3282b14b22d6aba7ca6cb8/greenlet-3.3.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/4f/ab/a6aa43d45ceb88adc0e8c1358fa6935c6e6a5895537431dec67524ca2ccd/holoviews-1.22.1-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/11/cd/ec193e471780dfad60e44ded5526c123695c1354910edd537d7aa1d22094/hvplot-0.12.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/c4/f7/5cc291d701094754a1d327b44d80a44971e13962881d9a400235726171da/hypothesis-6.151.9-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/c0/d9/53a8b53e75279a953fae608bd01025d9afcf393406c0da1dda1b7f5693c5/hypothesis-6.151.5-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/fb/fe/301e0936b79bcab4cacc7548bf2853fc28dced0a578bab1f7ef53c9aa75b/imageio-2.37.2-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/a0/2d/43c8522a2038e9d0e7dbdf3a61195ecc31ca576fb1527a528c877e87d973/imageio_ffmpeg-0.6.0-py3-none-manylinux2014_x86_64.whl @@ -287,7 +289,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/38/4c/ed65ac8c0bedd3af253cc1e63ae3fa8fb86fb0b34cfecaf12129e7c35dd0/rerun_notebook-0.30.0-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/77/b7/d533b8a77665fbf8aea1109fc488c89e74f0b6381baa1d7d5f99131f1dbe/rerun_sdk-0.30.0-cp310-abi3-manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/61/b5/707f6cf0066a6412aacc11d17920ea2e19e5b2f04081c64526eb35b5c6e7/rpds_py-0.30.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/a3/1d/5f56cae1d6c40b8a318513599b35ea4b075d7dc1cd1d04449578c29d1d75/ruff-0.15.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/8a/d9/0e3a81467a120fd265658d127db648e4d3acfe3e4f6f5d4ea79fac47e587/ruff-0.15.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/58/0e/8c2a03d518fb6bd0b6b0d4b114c63d5f1db01ff0f9925d8eb10960d01c01/scikit_learn-1.7.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl - pypi: https://files.pythonhosted.org/packages/8e/6d/41991e503e51fc1134502694c5fa7a1671501a17ffa12716a4a9151af3df/scipy-1.15.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl @@ -301,7 +303,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/50/d4/e51d52047e7eb9a582da59f32125d17c0482d065afd5d3bc435ff2120dc5/tornado-6.5.4-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/16/e1/3079a9ff9b8e11b846c6ac5c8b5bfb7ff225eee721825310c91b3b50304f/tqdm-4.67.3-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/00/c0/8f5d070730d7836adc9c9b6408dec68c6ced86b304a9b26a14df072a6e8c/traitlets-5.14.3-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/3e/4a/a2ed209ef215b62b2d3246e07e833081e07d913adf7e0448fc204be443d6/ty-0.0.17-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/81/f9/3bbfbbe35478de9bcd63848f4bc9bffda72278dd9732dbad3efc3978432e/ty-0.0.19-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/c7/b0/003792df09decd6849a5e39c28b513c06e84436a54440380862b5aeff25d/tzdata-2025.3-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/61/73/d21edf5b204d1467e06500080a50f79d49ef2b997c79123a536d4a17d97c/uc_micro_py-2.0.0-py3-none-any.whl @@ -343,6 +345,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.5-h2d0b736_3.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.1-h35e630c_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.11.11-h9e4cc4f_1_cpython.conda + - conda: https://prefix.dev/blooop/linux-64/ralph-orchestrator-2.6.0-hb0f4dca_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-h853b02a_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/shellcheck-0.10.0-ha770c72_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/sqlite-3.48.0-h9eae976_1.conda @@ -376,7 +379,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/72/83/3e06a52aca8128bdd4dcd67e932b809e76a96ab8c232a8b025b2850264c5/greenlet-3.3.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/4f/ab/a6aa43d45ceb88adc0e8c1358fa6935c6e6a5895537431dec67524ca2ccd/holoviews-1.22.1-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/11/cd/ec193e471780dfad60e44ded5526c123695c1354910edd537d7aa1d22094/hvplot-0.12.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/c4/f7/5cc291d701094754a1d327b44d80a44971e13962881d9a400235726171da/hypothesis-6.151.9-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/c0/d9/53a8b53e75279a953fae608bd01025d9afcf393406c0da1dda1b7f5693c5/hypothesis-6.151.5-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/fb/fe/301e0936b79bcab4cacc7548bf2853fc28dced0a578bab1f7ef53c9aa75b/imageio-2.37.2-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/a0/2d/43c8522a2038e9d0e7dbdf3a61195ecc31ca576fb1527a528c877e87d973/imageio_ffmpeg-0.6.0-py3-none-manylinux2014_x86_64.whl @@ -445,7 +448,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/38/4c/ed65ac8c0bedd3af253cc1e63ae3fa8fb86fb0b34cfecaf12129e7c35dd0/rerun_notebook-0.30.0-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/77/b7/d533b8a77665fbf8aea1109fc488c89e74f0b6381baa1d7d5f99131f1dbe/rerun_sdk-0.30.0-cp310-abi3-manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/f8/1e/372195d326549bb51f0ba0f2ecb9874579906b97e08880e7a65c3bef1a99/rpds_py-0.30.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/a3/1d/5f56cae1d6c40b8a318513599b35ea4b075d7dc1cd1d04449578c29d1d75/ruff-0.15.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/8a/d9/0e3a81467a120fd265658d127db648e4d3acfe3e4f6f5d4ea79fac47e587/ruff-0.15.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/ef/0e/97dbca66347b8cf0ea8b529e6bb9367e337ba2e8be0ef5c1a545232abfde/scikit_learn-1.7.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl - pypi: https://files.pythonhosted.org/packages/09/7d/af933f0f6e0767995b4e2d705a0665e454d1c19402aa7e895de3951ebb04/scipy-1.17.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl @@ -458,7 +461,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/50/d4/e51d52047e7eb9a582da59f32125d17c0482d065afd5d3bc435ff2120dc5/tornado-6.5.4-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/16/e1/3079a9ff9b8e11b846c6ac5c8b5bfb7ff225eee721825310c91b3b50304f/tqdm-4.67.3-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/00/c0/8f5d070730d7836adc9c9b6408dec68c6ced86b304a9b26a14df072a6e8c/traitlets-5.14.3-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/3e/4a/a2ed209ef215b62b2d3246e07e833081e07d913adf7e0448fc204be443d6/ty-0.0.17-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/81/f9/3bbfbbe35478de9bcd63848f4bc9bffda72278dd9732dbad3efc3978432e/ty-0.0.19-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/61/73/d21edf5b204d1467e06500080a50f79d49ef2b997c79123a536d4a17d97c/uc_micro_py-2.0.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl @@ -499,6 +502,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.5-h2d0b736_3.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.1-h35e630c_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.12.9-h9e4cc4f_0_cpython.conda + - conda: https://prefix.dev/blooop/linux-64/ralph-orchestrator-2.6.0-hb0f4dca_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-h853b02a_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/shellcheck-0.10.0-ha770c72_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/sqlite-3.48.0-h9eae976_1.conda @@ -532,7 +536,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/50/1f/5155f55bd71cabd03765a4aac9ac446be129895271f73872c36ebd4b04b6/greenlet-3.3.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/4f/ab/a6aa43d45ceb88adc0e8c1358fa6935c6e6a5895537431dec67524ca2ccd/holoviews-1.22.1-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/11/cd/ec193e471780dfad60e44ded5526c123695c1354910edd537d7aa1d22094/hvplot-0.12.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/c4/f7/5cc291d701094754a1d327b44d80a44971e13962881d9a400235726171da/hypothesis-6.151.9-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/c0/d9/53a8b53e75279a953fae608bd01025d9afcf393406c0da1dda1b7f5693c5/hypothesis-6.151.5-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/fb/fe/301e0936b79bcab4cacc7548bf2853fc28dced0a578bab1f7ef53c9aa75b/imageio-2.37.2-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/a0/2d/43c8522a2038e9d0e7dbdf3a61195ecc31ca576fb1527a528c877e87d973/imageio_ffmpeg-0.6.0-py3-none-manylinux2014_x86_64.whl @@ -601,7 +605,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/38/4c/ed65ac8c0bedd3af253cc1e63ae3fa8fb86fb0b34cfecaf12129e7c35dd0/rerun_notebook-0.30.0-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/77/b7/d533b8a77665fbf8aea1109fc488c89e74f0b6381baa1d7d5f99131f1dbe/rerun_sdk-0.30.0-cp310-abi3-manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/60/1b/6f8f29f3f995c7ffdde46a626ddccd7c63aefc0efae881dc13b6e5d5bb16/rpds_py-0.30.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/a3/1d/5f56cae1d6c40b8a318513599b35ea4b075d7dc1cd1d04449578c29d1d75/ruff-0.15.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/8a/d9/0e3a81467a120fd265658d127db648e4d3acfe3e4f6f5d4ea79fac47e587/ruff-0.15.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/5c/d0/0c577d9325b05594fdd33aa970bf53fb673f051a45496842caee13cfd7fe/scikit_learn-1.7.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl - pypi: https://files.pythonhosted.org/packages/01/8e/1e35281b8ab6d5d72ebe9911edcdffa3f36b04ed9d51dec6dd140396e220/scipy-1.17.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl @@ -614,7 +618,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/50/d4/e51d52047e7eb9a582da59f32125d17c0482d065afd5d3bc435ff2120dc5/tornado-6.5.4-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/16/e1/3079a9ff9b8e11b846c6ac5c8b5bfb7ff225eee721825310c91b3b50304f/tqdm-4.67.3-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/00/c0/8f5d070730d7836adc9c9b6408dec68c6ced86b304a9b26a14df072a6e8c/traitlets-5.14.3-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/3e/4a/a2ed209ef215b62b2d3246e07e833081e07d913adf7e0448fc204be443d6/ty-0.0.17-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/81/f9/3bbfbbe35478de9bcd63848f4bc9bffda72278dd9732dbad3efc3978432e/ty-0.0.19-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/61/73/d21edf5b204d1467e06500080a50f79d49ef2b997c79123a536d4a17d97c/uc_micro_py-2.0.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl @@ -654,6 +658,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.1-h35e630c_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.13.2-hf636f53_101_cp313.conda - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.13-8_cp313.conda + - conda: https://prefix.dev/blooop/linux-64/ralph-orchestrator-2.6.0-hb0f4dca_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-h853b02a_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/shellcheck-0.10.0-ha770c72_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/sqlite-3.48.0-h9eae976_1.conda @@ -687,7 +692,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/7a/34/259b28ea7a2a0c904b11cd36c79b8cef8019b26ee5dbe24e73b469dea347/greenlet-3.3.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/4f/ab/a6aa43d45ceb88adc0e8c1358fa6935c6e6a5895537431dec67524ca2ccd/holoviews-1.22.1-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/11/cd/ec193e471780dfad60e44ded5526c123695c1354910edd537d7aa1d22094/hvplot-0.12.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/c4/f7/5cc291d701094754a1d327b44d80a44971e13962881d9a400235726171da/hypothesis-6.151.9-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/c0/d9/53a8b53e75279a953fae608bd01025d9afcf393406c0da1dda1b7f5693c5/hypothesis-6.151.5-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/fb/fe/301e0936b79bcab4cacc7548bf2853fc28dced0a578bab1f7ef53c9aa75b/imageio-2.37.2-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/a0/2d/43c8522a2038e9d0e7dbdf3a61195ecc31ca576fb1527a528c877e87d973/imageio_ffmpeg-0.6.0-py3-none-manylinux2014_x86_64.whl @@ -756,7 +761,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/38/4c/ed65ac8c0bedd3af253cc1e63ae3fa8fb86fb0b34cfecaf12129e7c35dd0/rerun_notebook-0.30.0-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/77/b7/d533b8a77665fbf8aea1109fc488c89e74f0b6381baa1d7d5f99131f1dbe/rerun_sdk-0.30.0-cp310-abi3-manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/b7/de/f7192e12b21b9e9a68a6d0f249b4af3fdcdff8418be0767a627564afa1f1/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/a3/1d/5f56cae1d6c40b8a318513599b35ea4b075d7dc1cd1d04449578c29d1d75/ruff-0.15.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/8a/d9/0e3a81467a120fd265658d127db648e4d3acfe3e4f6f5d4ea79fac47e587/ruff-0.15.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/46/af/c5e286471b7d10871b811b72ae794ac5fe2989c0a2df07f0ec723030f5f5/scikit_learn-1.7.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl - pypi: https://files.pythonhosted.org/packages/f5/5f/f17563f28ff03c7b6799c50d01d5d856a1d55f2676f537ca8d28c7f627cd/scipy-1.17.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl @@ -769,7 +774,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/50/d4/e51d52047e7eb9a582da59f32125d17c0482d065afd5d3bc435ff2120dc5/tornado-6.5.4-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/16/e1/3079a9ff9b8e11b846c6ac5c8b5bfb7ff225eee721825310c91b3b50304f/tqdm-4.67.3-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/00/c0/8f5d070730d7836adc9c9b6408dec68c6ced86b304a9b26a14df072a6e8c/traitlets-5.14.3-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/3e/4a/a2ed209ef215b62b2d3246e07e833081e07d913adf7e0448fc204be443d6/ty-0.0.17-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/81/f9/3bbfbbe35478de9bcd63848f4bc9bffda72278dd9732dbad3efc3978432e/ty-0.0.19-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/61/73/d21edf5b204d1467e06500080a50f79d49ef2b997c79123a536d4a17d97c/uc_micro_py-2.0.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl @@ -1235,7 +1240,7 @@ packages: - pypi: ./ name: holobench version: 1.61.0 - sha256: aaf3511b8400758d9c103d694981e9472429877e124d8e563704d09fc8c9d431 + sha256: 2f967f39f3e07137706ae8ce700f394db268d9c4b9fe55e7e954440583f534e8 requires_dist: - holoviews>=1.15,<=1.22.1 - numpy>=1.0,<=2.4.1 @@ -1250,18 +1255,18 @@ packages: - strenum>=0.4.0,<=0.4.15 - scikit-learn>=1.2,<=1.7.2 - moviepy>=2.1.2,<=2.2.1 - - pylint>=3.2.5,<=4.0.4 ; extra == 'test' - - pytest-cov>=4.1,<=7.0.0 ; extra == 'test' - - pytest>=7.4,<=9.0.2 ; extra == 'test' - - hypothesis>=6.104.2,<=6.151.9 ; extra == 'test' - - ruff>=0.5.0,<=0.15.1 ; extra == 'test' - - coverage>=7.5.4,<=7.13.4 ; extra == 'test' - nbformat ; extra == 'test' - ipykernel ; extra == 'test' - pip ; extra == 'test' - jupyter-bokeh ; extra == 'test' + - pylint>=3.2.5,<=4.0.4 ; extra == 'test' + - pytest-cov>=4.1,<=7.0.0 ; extra == 'test' + - pytest>=7.4,<=9.0.2 ; extra == 'test' + - hypothesis>=6.104.2,<=6.151.5 ; extra == 'test' + - ruff>=0.5.0,<=0.15.0 ; extra == 'test' + - coverage>=7.5.4,<=7.13.4 ; extra == 'test' - prek>=0.2.28,<0.4.0 ; extra == 'test' - - ty>=0.0.13,<=0.0.17 ; extra == 'test' + - ty>=0.0.13,<=0.0.19 ; extra == 'test' - rerun-sdk>=0.29.2 ; extra == 'rerun' - rerun-notebook>=0.29.2 ; extra == 'rerun' - flask ; extra == 'rerun' @@ -1466,10 +1471,10 @@ packages: - nbval ; extra == 'tests-nb' - pytest-xdist ; extra == 'tests-nb' requires_python: '>=3.10' -- pypi: https://files.pythonhosted.org/packages/c4/f7/5cc291d701094754a1d327b44d80a44971e13962881d9a400235726171da/hypothesis-6.151.9-py3-none-any.whl +- pypi: https://files.pythonhosted.org/packages/c0/d9/53a8b53e75279a953fae608bd01025d9afcf393406c0da1dda1b7f5693c5/hypothesis-6.151.5-py3-none-any.whl name: hypothesis - version: 6.151.9 - sha256: 7b7220585c67759b1b1ef839b1e6e9e3d82ed468cfc1ece43c67184848d7edd9 + version: 6.151.5 + sha256: c0e15c91fa0e67bc0295551ef5041bebad42753b7977a610cd7a6ec1ad04ef13 requires_dist: - exceptiongroup>=1.0.0 ; python_full_version < '3.11' - sortedcontainers>=2.1.0,<3.0.0 @@ -3448,6 +3453,13 @@ packages: requires_dist: - cffi ; implementation_name == 'pypy' requires_python: '>=3.8' +- conda: https://prefix.dev/blooop/linux-64/ralph-orchestrator-2.6.0-hb0f4dca_0.conda + sha256: 701849bf71dce7e5225a2cb0714a079f25ce17763c8b751f6f1c36e1434dcd5a + md5: 3d23dee3d7a5cefb136c26c9dd2d8d21 + license: MIT + license_family: MIT + size: 6527009 + timestamp: 1771993517565 - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-h853b02a_0.conda sha256: 12ffde5a6f958e285aa22c191ca01bbd3d6e710aa852e00618fa6ddc59149002 md5: d7d95fc8287ea7bf33e0e7116d2b95ec @@ -3540,10 +3552,10 @@ packages: version: 0.30.0 sha256: 33f559f3104504506a44bb666b93a33f5d33133765b0c216a5bf2f1e1503af89 requires_python: '>=3.10' -- pypi: https://files.pythonhosted.org/packages/a3/1d/5f56cae1d6c40b8a318513599b35ea4b075d7dc1cd1d04449578c29d1d75/ruff-0.15.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl +- pypi: https://files.pythonhosted.org/packages/8a/d9/0e3a81467a120fd265658d127db648e4d3acfe3e4f6f5d4ea79fac47e587/ruff-0.15.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl name: ruff - version: 0.15.1 - sha256: 4ab064052c31dddada35079901592dfba2e05f5b1e43af3954aafcbc1096a5b2 + version: 0.15.0 + sha256: bcbca3d40558789126da91d7ef9a7c87772ee107033db7191edefa34e2c7f1b4 requires_python: '>=3.7' - pypi: https://files.pythonhosted.org/packages/46/af/c5e286471b7d10871b811b72ae794ac5fe2989c0a2df07f0ec723030f5f5/scikit_learn-1.7.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl name: scikit-learn @@ -4240,10 +4252,10 @@ packages: - pytest-mypy-testing ; extra == 'test' - pytest>=7.0,<8.2 ; extra == 'test' requires_python: '>=3.8' -- pypi: https://files.pythonhosted.org/packages/3e/4a/a2ed209ef215b62b2d3246e07e833081e07d913adf7e0448fc204be443d6/ty-0.0.17-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl +- pypi: https://files.pythonhosted.org/packages/81/f9/3bbfbbe35478de9bcd63848f4bc9bffda72278dd9732dbad3efc3978432e/ty-0.0.19-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl name: ty - version: 0.0.17 - sha256: 002139e807c53002790dfefe6e2f45ab0e04012e76db3d7c8286f96ec121af8f + version: 0.0.19 + sha256: abdf5885130393ce74501dba792f48ce0a515756ec81c33a4b324bdf3509df6e requires_python: '>=3.8' - pypi: https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl name: typing-extensions diff --git a/pyproject.toml b/pyproject.toml index ee016904d..2dbab5a48 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,8 @@ python = ">=3.10" sqlite = "==3.48.0" shellcheck = ">=0.10.0,<0.11" devpod = ">=0.8.0,<0.9" -gh = ">=2.63.0,<3.0" +gh = ">=2.83.0,<3.0" +ralph-orchestrator = ">=2.6.0,<2.7.0" [tool.pixi.feature.py310.dependencies] python = "3.10.*" @@ -58,16 +59,16 @@ holobench = { path = ".", editable = true } [project.optional-dependencies] test = [ - "pylint>=3.2.5,<=4.0.5", - "pytest-cov>=4.1,<=7.0.0", - "pytest>=7.4,<=9.0.2", - "hypothesis>=6.104.2,<=6.151.9", - "ruff>=0.5.0,<=0.15.4", - "coverage>=7.5.4,<=7.13.4", "nbformat", "ipykernel", "pip", "jupyter_bokeh", + "pylint>=3.2.5,<=4.0.4", + "pytest-cov>=4.1,<=7.0.0", + "pytest>=7.4,<=9.0.2", + "hypothesis>=6.104.2,<=6.151.5", + "ruff>=0.5.0,<=0.15.0", + "coverage>=7.5.4,<=7.13.4", "prek>=0.2.28,<0.4.0", "ty>=0.0.13,<=0.0.19", ] @@ -104,6 +105,7 @@ agent-iterate = { depends-on = [ "fix-commit-push", ] } + dev-add-docker = "devpod provider list | grep -qw docker || devpod provider add docker" dev = { cmd = "devpod up . --ide none && ssh pythontemplate.devpod", depends-on = [ "dev-add-docker", @@ -145,8 +147,11 @@ ci = { depends-on = [ git-commit-all = "git add -A && git commit -m 'Add all untracked files' || true" ci-push = { depends-on = ["format", "ruff-lint", "update-lock", "ci", "push"] } clear-pixi = "rm -rf .pixi pixi.lock" -setup-git-merge-driver = "git config merge.ours.driver true" +ralph = "ralph" +setup-git-merge-driver = "git config merge.ourslock.driver true" update-from-template-repo = "./scripts/update_from_template.sh" +dev-use-prebuilt = "./scripts/devcontainer_use_prebuilt.sh" +dev-use-local = "./scripts/devcontainer_use_local.sh" generate-docs = "python bencher/example/meta/generate_examples.py" docs = "rm -rf docs/builtdocs; rm -rf docs/jupyter_execute; sphinx-build -b html docs docs/builtdocs" diff --git a/ralph.yml b/ralph.yml new file mode 100644 index 000000000..3b8ab05bc --- /dev/null +++ b/ralph.yml @@ -0,0 +1,34 @@ +# Ralph Orchestrator Configuration +# Generated by: ralph init --backend claude +# Docs: https://github.com/mikeyobrien/ralph-orchestrator + +cli: + backend: "claude" + +event_loop: + prompt_file: "PROMPT.md" + completion_promise: "LOOP_COMPLETE" + max_iterations: 100 + # max_runtime_seconds: 14400 # 4 hours max + +# ───────────────────────────────────────────────────────────────────────────── +# Additional Configuration (uncomment to customize) +# ───────────────────────────────────────────────────────────────────────────── + +# core: +# scratchpad: ".ralph/agent/scratchpad.md" +# specs_dir: ".ralph/specs/" + +# Custom hats for multi-agent workflows: +# hats: +# builder: +# name: "Builder" +# triggers: ["build.task"] +# publishes: ["build.done", "build.blocked"] +# +# reviewer: +# name: "Reviewer" +# triggers: ["review.request"] +# publishes: ["review.approved", "review.changes_requested"] + +# Create PROMPT.md with your task, then run: ralph run diff --git a/scripts/devcontainer_use_local.sh b/scripts/devcontainer_use_local.sh new file mode 100755 index 000000000..9dcf577fb --- /dev/null +++ b/scripts/devcontainer_use_local.sh @@ -0,0 +1,40 @@ +#!/bin/bash +set -euo pipefail + +# Switch devcontainer.json to build locally from Dockerfile. + +DEVCONTAINER_JSON=".devcontainer/devcontainer.json" + +# Already using local build? +if grep -q '^[[:space:]]*"build"' "$DEVCONTAINER_JSON"; then + echo "Already using local build. Nothing to do." + exit 0 +fi + +awk ' + # Uncomment commented build block + /^ \/\/ "build": \{/ { in_build=1 } + in_build { + sub(/^ \/\/ /, " ") + if (/^ \}/) in_build=0 + print; next + } + + # Uncomment commented features block + /^ \/\/ "features": \{/ { in_features=1 } + in_features { + sub(/^ \/\/ /, " ") + if (/^ \}/) in_features=0 + print; next + } + + # Comment out uncommented image line + /^ "image":/ { + sub(/^ /, " // ") + print; next + } + + { print } +' "$DEVCONTAINER_JSON" > "${DEVCONTAINER_JSON}.tmp" && mv "${DEVCONTAINER_JSON}.tmp" "$DEVCONTAINER_JSON" + +echo "Switched to local build from Dockerfile." diff --git a/scripts/devcontainer_use_prebuilt.sh b/scripts/devcontainer_use_prebuilt.sh new file mode 100755 index 000000000..bf59d2756 --- /dev/null +++ b/scripts/devcontainer_use_prebuilt.sh @@ -0,0 +1,121 @@ +#!/bin/bash +set -euo pipefail + +# Switch devcontainer.json to use this repo's own prebuilt GHCR image. +# Also attempts to make the GHCR package public. + +DEVCONTAINER_JSON=".devcontainer/devcontainer.json" + +# --- Check prerequisites --- +if ! command -v gh >/dev/null 2>&1; then + echo "WARNING: GitHub CLI (gh) not found. Will skip making the package public." >&2 + GH_AVAILABLE=false +else + GH_AVAILABLE=true +fi + +# --- Resolve GitHub owner/repo from git remote --- +REMOTE_URL=$(git remote get-url origin 2>/dev/null) || { + echo "ERROR: No git remote 'origin' found." >&2 + exit 1 +} + +REPO=$(echo "$REMOTE_URL" | sed -E 's#(ssh://git@github\.com/|git@github\.com:|https?://github\.com/|git://github\.com/)##; s/\.git$//') + +if [[ -z "$REPO" || "$REPO" != */* ]]; then + echo "ERROR: Could not parse owner/repo from remote URL: $REMOTE_URL" >&2 + exit 1 +fi + +IMAGE="ghcr.io/${REPO}/devcontainer:latest" +echo "Repository: $REPO" +echo "Image: $IMAGE" + +# --- Check if already using this repo's prebuilt image (uncommented) --- +if grep -q '^[[:space:]]*"image": "'"${IMAGE}"'"' "$DEVCONTAINER_JSON"; then + echo "Already using repo prebuilt image. Nothing to do." + exit 0 +fi + +# --- Transform devcontainer.json --- +awk -v image="$IMAGE" ' + # Comment out uncommented build block + /^ "build": \{/ { in_build=1 } + in_build { + sub(/^ /, " // ") + if (/^ \/\/ \}/) in_build=0 + print; next + } + + # Comment out uncommented features block + /^ "features": \{/ { in_features=1 } + in_features { + sub(/^ /, " // ") + if (/^ \/\/ \}/) in_features=0 + print; next + } + + # Uncomment commented image line and set repo URL + /^ \/\/ "image":/ { + printf " \"image\": \"%s\",\n", image + next + } + + # Replace uncommented image line (e.g. template URL) with repo URL + /^ "image":/ { + printf " \"image\": \"%s\",\n", image + next + } + + { print } +' "$DEVCONTAINER_JSON" > "${DEVCONTAINER_JSON}.tmp" && mv "${DEVCONTAINER_JSON}.tmp" "$DEVCONTAINER_JSON" + +echo "" +echo "Updated $DEVCONTAINER_JSON to use repo prebuilt image." + +# --- Try to make the GHCR package public --- +echo "" +echo "Attempting to make GHCR package public..." + +OWNER=$(echo "$REPO" | cut -d'/' -f1) +PACKAGE_NAME=$(echo "$REPO" | cut -d'/' -f2) +ENCODED_PACKAGE="${PACKAGE_NAME}%2Fdevcontainer" + +if ! $GH_AVAILABLE; then + echo "Skipping: gh CLI not available." + echo "" + echo "To make the package public, install gh and run:" + echo " gh auth refresh -s write:packages" + echo " gh api --method PATCH /user/packages/container/${ENCODED_PACKAGE} -f visibility=public" + exit 0 +fi + +# Determine if owner is an org or a user +IS_ORG=false +if gh api "/orgs/${OWNER}" >/dev/null 2>&1; then + IS_ORG=true +fi + +if $IS_ORG; then + API_PATH="/orgs/${OWNER}/packages/container/${ENCODED_PACKAGE}" + SETTINGS_URL="https://github.com/orgs/${OWNER}/packages/container/${ENCODED_PACKAGE}/settings" +else + API_PATH="/user/packages/container/${ENCODED_PACKAGE}" + SETTINGS_URL="https://github.com/users/${OWNER}/packages/container/${ENCODED_PACKAGE}/settings" +fi + +if API_OUTPUT=$(gh api --method PATCH "$API_PATH" -f visibility=public 2>&1); then + echo "GHCR package is now public." +else + echo "Could not set package visibility automatically." + echo "API response: $API_OUTPUT" + echo "" + echo "To make the package public manually, either:" + echo "" + echo " 1. Visit: $SETTINGS_URL" + echo " -> Danger Zone -> Change visibility -> Public" + echo "" + echo " 2. Run:" + echo " gh auth refresh -s write:packages" + echo " gh api --method PATCH $API_PATH -f visibility=public" +fi diff --git a/scripts/launch_vscode.sh b/scripts/launch_vscode.sh index fa6b0291d..18e375e33 100755 --- a/scripts/launch_vscode.sh +++ b/scripts/launch_vscode.sh @@ -1,5 +1,5 @@ #! /bin/bash -set -e +set -eo pipefail export COMPOSE_DOCKER_CLI_BUILD=1 export DOCKER_BUILDKIT=1 @@ -25,14 +25,16 @@ if [ ! -d "$VENV_DIR" ]; then echo "Creating virtual environment in $VENV_DIR..." python3 -m venv "$VENV_DIR" echo "Activating the virtual environment..." - source $VENV_DIR/bin/activate + # shellcheck disable=SC1091 + source "$VENV_DIR/bin/activate" echo "Installing deps rocker..." pip install deps-rocker pixi-rocker rockervsc echo "Virtual environment setup and deps rocker installation complete." else echo "Virtual environment already exists in $VENV_DIR." echo "Activating the existing virtual environment..." - source $VENV_DIR/bin/activate + # shellcheck disable=SC1091 + source "$VENV_DIR/bin/activate" fi rockervsc diff --git a/scripts/rename_project.sh b/scripts/rename_project.sh index 3951dde98..c1b65908a 100755 --- a/scripts/rename_project.sh +++ b/scripts/rename_project.sh @@ -1,24 +1,36 @@ #!/bin/bash +set -eo pipefail + +# Escape characters special in sed replacement strings (\, &, /) +escape_sed() { printf '%s\n' "$1" | sed 's/[\\&/]/\\&/g'; } mv python_template "$1" -# change project name in all files -find . \( -type d -name .git -prune \) -o \( -type f -not -name 'tasks.json' -not -name 'update_from_template.sh' -not -name 'pixi.lock' \) -print0 | xargs -0 sed -i "s/python_template/$1/g" +ESCAPED_1=$(escape_sed "$1") + +# change project name in all files (exclude main devcontainer.json to protect template image URL) +find . \( -type d -name .git -prune \) -o \( -type f -not -name 'tasks.json' -not -name 'update_from_template.sh' -not -name 'pixi.lock' -not -path './.devcontainer/devcontainer.json' \) -print0 | xargs -0 sed -i "s/python_template/$ESCAPED_1/g" + +# update just the name field in devcontainer.json +sed -i "s/\"name\": \"python_template\"/\"name\": \"$ESCAPED_1\"/" .devcontainer/devcontainer.json # regenerate lockfile to match renamed project pixi update # author name if [ -n "$2" ]; then - find . \( -type d -name .git -prune \) -o \( -type f -not -name 'tasks.json' -not -name 'update_from_template.sh' \) -print0 | xargs -0 sed -i "s/Austin Gregg-Smith/$2/g" + ESCAPED_2=$(escape_sed "$2") + find . \( -type d -name .git -prune \) -o \( -type f -not -name 'tasks.json' -not -name 'update_from_template.sh' \) -print0 | xargs -0 sed -i "s/Austin Gregg-Smith/$ESCAPED_2/g" fi # author email if [ -n "$3" ]; then - find . \( -type d -name .git -prune \) -o \( -type f -not -name 'tasks.json' -not -name 'update_from_template.sh' \) -print0 | xargs -0 sed -i "s/blooop@gmail.com/$3/g" + ESCAPED_3=$(escape_sed "$3") + find . \( -type d -name .git -prune \) -o \( -type f -not -name 'tasks.json' -not -name 'update_from_template.sh' \) -print0 | xargs -0 sed -i "s/blooop@gmail.com/$ESCAPED_3/g" fi -# github username +# github username (exclude main devcontainer.json to protect template image URL) if [ -n "$4" ]; then - find . \( -type d -name .git -prune \) -o \( -type f -not -name 'setup_host.sh' -not -name 'update_from_template.sh' \) -print0 | xargs -0 sed -i "s/blooop/$4/g" + ESCAPED_4=$(escape_sed "$4") + find . \( -type d -name .git -prune \) -o \( -type f -not -name 'setup_host.sh' -not -name 'update_from_template.sh' -not -path './.devcontainer/devcontainer.json' \) -print0 | xargs -0 sed -i "s/blooop/$ESCAPED_4/g" fi diff --git a/scripts/setup_host.sh b/scripts/setup_host.sh index 7d2a308bd..49496ffe0 100755 --- a/scripts/setup_host.sh +++ b/scripts/setup_host.sh @@ -1,4 +1,5 @@ #! /bin/bash +set -eo pipefail #Sets up docker, nvidia docker git-lfs and rocker which are used to clone and setup docker containers @@ -6,7 +7,7 @@ # https://docs.docker.com/engine/install/ubuntu/ #remove incorrect docker -for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done +for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove "$pkg"; done # Add Docker's official GPG key: sudo apt update @@ -16,6 +17,7 @@ sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyring sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: +# shellcheck disable=SC1091 echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ @@ -51,7 +53,8 @@ docker run hello-world echo "you may need to restart your machine" echo "you may need to add this to /etc/docker/daemon.json" -echo "cat /etc/docker/daemon.json +cat <<'EOF' +cat /etc/docker/daemon.json { "runtimes": { "nvidia": { @@ -59,16 +62,18 @@ echo "cat /etc/docker/daemon.json "path": "nvidia-container-runtime" } } -" +} +EOF #INSTALL PIXI curl -fsSL https://pixi.sh/install.sh | bash +# shellcheck disable=SC2016 echo 'eval "$(pixi completion --shell bash)"' >> ~/.bashrc #INSTALL UV curl -LsSf https://astral.sh/uv/install.sh | sh sudo groupadd docker -sudo usermod -aG docker $USER +sudo usermod -aG docker "$USER" newgrp docker || true diff --git a/scripts/update_from_template.sh b/scripts/update_from_template.sh index d8683e7d8..96d4fb8d7 100755 --- a/scripts/update_from_template.sh +++ b/scripts/update_from_template.sh @@ -1,4 +1,5 @@ #! /bin/bash +set -eo pipefail git config --global pull.rebase false git remote add template https://github.com/blooop/python_template.git