diff --git a/.claude/README.md b/.claude/README.md new file mode 100644 index 0000000..087a4b3 --- /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 check, ruff format --check and ty +- `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/activate.sh b/.claude/activate.sh new file mode 100755 index 0000000..c6ca221 --- /dev/null +++ b/.claude/activate.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Source this file to activate the pixi environment in your current shell +# Usage: source .claude/activate.sh + +# Add pixi to PATH +export PATH="$HOME/.pixi/bin:$PATH" + +# Optional: Activate pixi shell if available +if command -v pixi &> /dev/null; then + echo "✅ Pixi environment activated" + echo "💡 Available commands:" + echo " pixi run test - Run tests" + echo " pixi run lint - Run linters" + echo " pixi run format - Format code" + echo " pixi run ci - Run full CI" + pixi task list --summary 2>/dev/null || true +else + echo "⚠️ Pixi not found. Please run .claude/hooks/SessionStart first." +fi diff --git a/.claude/commands/fix-issue.md b/.claude/commands/fix-issue.md new file mode 100644 index 0000000..1af6c35 --- /dev/null +++ b/.claude/commands/fix-issue.md @@ -0,0 +1,20 @@ +# Fix GitHub Issue + +Fix the GitHub issue: $ARGUMENTS + +## Steps + +1. Fetch issue details: `pixi run gh issue view $ARGUMENTS` +2. Extract the issue number from the URL for commit messages +3. Understand the problem and locate relevant code +4. Implement the fix +5. Run `pixi run ci` to verify (format, lint, test, coverage) +6. Commit with message referencing the issue (e.g., `Fixes #123`) +7. Create PR: `pixi run gh pr create` + +## Notes + +- Input can be a GitHub URL (e.g., `https://github.com/owner/repo/issues/123`) or issue number +- Keep changes minimal and focused on the issue +- Add tests if fixing a bug +- Run full CI before committing diff --git a/.claude/hooks/SessionStart b/.claude/hooks/SessionStart new file mode 100755 index 0000000..5236120 --- /dev/null +++ b/.claude/hooks/SessionStart @@ -0,0 +1,47 @@ +#!/bin/bash +# SessionStart hook for Claude Code online environment +# This script sets up the Python development environment using pixi + +set -eo pipefail + +echo "🚀 Setting up Python Template environment..." + +# Check if pixi is installed +if ! command -v pixi &> /dev/null; then + echo "📦 Installing pixi..." + curl -fsSL https://pixi.sh/install.sh | bash + + # Add pixi to PATH for current session + 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" +else + echo "✅ Pixi already installed" +fi + +# Ensure pixi is in PATH for this session +export PATH="$HOME/.pixi/bin:$PATH" + +# Install project dependencies +echo "📦 Installing project dependencies..." +pixi install + +# Run prek installation +echo "🔧 Setting up prek hooks..." +pixi run prek install || echo "⚠️ Prek installation skipped (optional)" + +echo "✅ Environment setup complete!" +echo "" +echo "Available pixi tasks:" +pixi task list +echo "" +echo "💡 Common commands:" +echo " pixi run test - Run tests" +echo " pixi run lint - Run linters" +echo " pixi run format - Format code" +echo " pixi run ci - Run full CI pipeline" +echo "" diff --git a/.devcontainer/claude-code/README.md b/.devcontainer/claude-code/README.md index 4e358b1..058a8eb 100644 --- a/.devcontainer/claude-code/README.md +++ b/.devcontainer/claude-code/README.md @@ -41,7 +41,7 @@ Splitting the rest of the directory into separate read-only binds is possible an ### Setup -The feature is declared where the image is built, in `.devcontainer/ci/devcontainer.json`: +The feature is declared where the image is built, in [python_template's `.devcontainer/ci/devcontainer.json`](https://github.com/blooop/python_template/blob/main/.devcontainer/ci/devcontainer.json): ```json { diff --git a/.devcontainer/claude-code/TROUBLESHOOTING.md b/.devcontainer/claude-code/TROUBLESHOOTING.md index 59e2156..571281f 100644 --- a/.devcontainer/claude-code/TROUBLESHOOTING.md +++ b/.devcontainer/claude-code/TROUBLESHOOTING.md @@ -36,7 +36,7 @@ Every one of these is writable from inside the container, and a write lands on t } ``` -The `../claude-code` feature is declared in `.devcontainer/ci/devcontainer.json`, the config CI builds the image from, so there is no `features` block here -- and no `runArgs` either. +The `../claude-code` feature is declared in [python_template's `.devcontainer/ci/devcontainer.json`](https://github.com/blooop/python_template/blob/main/.devcontainer/ci/devcontainer.json), the config CI builds the image from, so there is no `features` block here -- and no `runArgs` either. ## Common Issues and Solutions @@ -255,7 +255,7 @@ docker inspect | jq '.[0].HostConfig.NetworkMode' When setting up a new workspace: -- [ ] `../claude-code` feature declared in `.devcontainer/ci/devcontainer.json`, so the published image carries it +- [ ] `../claude-code` feature declared in [python_template's `.devcontainer/ci/devcontainer.json`](https://github.com/blooop/python_template/blob/main/.devcontainer/ci/devcontainer.json), so the published image carries it - [ ] `claude` authenticated on the host, so no OAuth flow runs in the container - [ ] Environment variables added (CLAUDE_CONFIG_DIR, XDG_*) - [ ] Files exist on host: `.credentials.json`, `.claude.json` diff --git a/.devcontainer/claude-code/init-host.sh b/.devcontainer/claude-code/init-host.sh index 7e123bf..da072a9 100755 --- a/.devcontainer/claude-code/init-host.sh +++ b/.devcontainer/claude-code/init-host.sh @@ -1,6 +1,11 @@ #!/bin/sh -# Initialize Claude Code host directory for devcontainer bind mount +# Create the host directories that devcontainer.json bind-mounts. # This script runs on the HOST before the container is created. +# docker refuses to create the container when a bind source is missing, so a +# host that has never run `gh auth login` (no ~/.config/gh) or never run Claude +# Code (no ~/.claude) could not start the container without this. # mkdir -p is idempotent - it only creates if missing, won't clobber existing. +# Keep this list in step with the ${localEnv:HOME} bind mounts in +# devcontainer.json; test/test_devcontainer.py fails when they drift. -mkdir -p "$HOME/.claude" +mkdir -p "$HOME/.claude" "$HOME/.config/gh" diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 85fcda2..32e75a0 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,7 +1,15 @@ { - // 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 + // Uses python_template's prebuilt image by default for fast startup. + // + // Template-only: python_template itself also ships .devcontainer/Dockerfile, + // .devcontainer/ci/ (the config its image is built from) and two pixi + // tasks that toggle this block -- `pixi run dev-use-local` (uncomment the + // "build" block below and build from the Dockerfile) and + // `pixi run dev-use-prebuilt` (point "image" at this repo's own image). + // A child repo that kept only devcontainer.json, post-create.sh and + // claude-code/init-host.sh (the initializeCommand below) has none of + // those; there the commented "build" block is inert, and to build locally + // you bring them over from blooop/python_template first. // "build": { // "dockerfile": "Dockerfile", // "context": ".." @@ -9,13 +17,13 @@ "image": "ghcr.io/blooop/python_template/devcontainer:latest", // There is deliberately no "features" block. The claude-code feature is - // already baked into the image above: .devcontainer/ci/devcontainer.json, - // which is the config CI builds that image from, declares - // "../claude-code". Declaring it again here made the devcontainer spec - // build a derived image on the first launch of every branch, reinstalling - // something the pulled image already carried -- so the "prebuilt image for - // fast startup" above still paid for a build. With this block gone the - // launch is a pull and nothing else. + // already baked into the image above: python_template's + // .devcontainer/ci/devcontainer.json, which is the config its CI builds + // that image from, declares "../claude-code". Declaring it again here + // made the devcontainer spec build a derived image on the first launch of + // every branch, reinstalling something the pulled image already carried -- + // so the "prebuilt image for fast startup" above still paid for a build. + // With this block gone the launch is a pull and nothing else. // // Adding a feature back here is allowed and costs that derived build again. // If that ever becomes the normal case, the fix is devlaunch's design -- @@ -25,7 +33,7 @@ // devpod's prebuild hash is computed from the Dockerfile and build context, // so it does not apply to an "image:" config like this one at all. - "initializeCommand": "mkdir -p \"$HOME/.config/gh\" && .devcontainer/claude-code/init-host.sh", + "initializeCommand": ".devcontainer/claude-code/init-host.sh", // There is deliberately no "runArgs": ["--network=host"]. // @@ -63,7 +71,9 @@ }, // Three mounts. The pixi volume keeps the environment out of the bind- - // mounted workspace; the other two share host credentials. + // mounted workspace; the other two share host credentials. docker will not + // create the container when a bind source is missing, so initializeCommand + // (.devcontainer/claude-code/init-host.sh) creates both on the host first. // // ~/.config/gh is here because it works. `gh` uses a system keyring when // one is available and falls back to hosts.yml when it is not, and on this diff --git a/.gitattributes b/.gitattributes index e507580..311c32a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -43,4 +43,4 @@ # numpy file format *.npy filter=lfs diff=lfs merge=lfs -text # GitHub syntax highlighting -pixi.lock linguist-language=YAML merge=ourslock +pixi.lock linguist-language=YAML merge=ours diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9f18bbc..7dc0a64 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -12,11 +12,10 @@ updates: groups: dev-dependencies: #try to group all development dependencies updates into a single pr - patterns: - - "check-manifest" - - "pre-commit" + patterns: + - "prek" - "pytest" - - "pytest-cov" + - "pytest-cov" - "hypothesis" - "ruff" - "coverage" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0896534..9fe8d25 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,16 +17,16 @@ jobs: environment: [py310, py311, py312, py313] steps: - name: Checkout - uses: actions/checkout@v4 - - uses: prefix-dev/setup-pixi@v0.8.3 + uses: actions/checkout@v7 + - uses: prefix-dev/setup-pixi@v0.10.0 with: cache: true - frozen: true + locked: true environments: ${{ matrix.environment }} - name: CI run: | pixi run -e ${{ matrix.environment }} ci - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@v7 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml deleted file mode 100644 index 8732461..0000000 --- a/.github/workflows/pre-commit.yaml +++ /dev/null @@ -1,10 +0,0 @@ -name: pre-commit - -on: [pull_request] - -jobs: - pre-commit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: pre-commit/action@v3.0.1 diff --git a/.github/workflows/prek.yaml b/.github/workflows/prek.yaml new file mode 100644 index 0000000..113ab8e --- /dev/null +++ b/.github/workflows/prek.yaml @@ -0,0 +1,19 @@ +name: prek + +on: [pull_request] + +jobs: + prek: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + # The ruff hooks are local hooks that run ruff (and prek) from the pixi + # environment, so CI uses the same pinned versions as local. + - uses: prefix-dev/setup-pixi@v0.10.0 + with: + cache: true + locked: true + environments: default + - name: prek + # `prek` is the pixi task `prek run -a`; extra args are appended to it. + run: pixi run --locked prek --show-diff-on-failure diff --git a/.gitignore b/.gitignore index 260ce0a..f99e42b 100644 --- a/.gitignore +++ b/.gitignore @@ -170,3 +170,10 @@ log/** managed_context/metadata.json test_suite_analysis/metadata.json + +.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 ae2c7df..dc8c164 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,14 +40,27 @@ repos: # - id: trailing-whitespace - id: fix-byte-order-marker - # Formatter for python - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.2 + # Ruff runs from the pixi environment, so these hooks, `pixi run lint` and CI + # all use the one ruff pinned in pyproject.toml. Change the version there only. + - repo: local hooks: - - # Run the formatter. + - id: ruff-check + name: ruff check + entry: pixi run --locked ruff check --fix --exit-non-zero-on-fix + language: system + types_or: [ python, pyi ] - id: ruff-format + name: ruff format + entry: pixi run --locked ruff format + language: system types_or: [ python, pyi ] + + # Shell script linter + - repo: https://github.com/shellcheck-py/shellcheck-py + rev: v0.11.0.1 + hooks: + - id: shellcheck + # Checks for spelling mistakes - repo: https://github.com/codespell-project/codespell rev: v2.3.0 diff --git a/.vscode/extensions.json b/.vscode/extensions.json index e8f481a..fd4af2a 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,13 +1,10 @@ { "recommendations": [ + "mhutchie.git-graph", "ms-python.python", "ms-python.vscode-pylance", - "njpwerner.autodocstring", + "jjjermiah.pixi-vscode", "charliermarsh.ruff", - "mhutchie.git-graph", - "tamasfe.even-better-toml", - "ms-azuretools.vscode-docker", - "ryanluker.vscode-coverage-gutters", - "jjjermiah.pixi-vscode" + "tamasfe.even-better-toml" ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 7680bda..ef97eec 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -25,11 +25,11 @@ "label": "autoformat", "detail": "Use ruff to automatically fix and format the code", "type": "shell", - "command": "pixi run fmt" + "command": "pixi run format" }, { "label": "lint", - "detail": "Run ruff check on the code", + "detail": "Run ruff check, ruff format --check and ty", "type": "shell", "command": "pixi run lint" }, @@ -52,7 +52,7 @@ "label": "pytest duration", "detail": "Run pytest and track the duration of each test", "type": "shell", - "command": "pytest --durations=0" + "command": "pixi run pytest --durations=0" }, { "label": "check CI", @@ -103,17 +103,7 @@ "detail": "Replaces all instances of the template project name with a new name. ", "type": "shell", "command": "scripts/rename_project.sh '${input:new_project_name}' '${input:new_author_name}' '${input:new_author_email}' '${input:github_username}'" - }, - { - "label": "flit install", - "type": "shell", - "command": "flit install --symlink" }, - { - "label": "flit publish", - "type": "shell", - "command": "flit publish" - }, { "label": "setup: host", "detail": "Sets up docker, nvidia docker git-lfs and rocker which are used to clone and setup docker containers", @@ -140,7 +130,7 @@ "label": "Install All Recommended Extensions", "type": "shell", "linux": { - "command": "cat .vscode/extensions.json | jq .recommendations[] | xargs -n 1 code . --install-extension" + "command": "if [ -f /.dockerenv ] || grep -q 'docker\\|lxc' /proc/1/cgroup 2>/dev/null; then echo 'Docker container detected, installing extensions...'; cat .vscode/extensions.json | jq .recommendations[] | xargs -n 1 code . --install-extension; else echo 'Not in Docker container, skipping extension installation'; fi" }, "runOptions": { "runOn": "folderOpen" @@ -149,19 +139,19 @@ "reveal": "always" }, }, - { - "label": "set git config recurse submodules", - "type": "shell", - "linux": { - "command": [" git config submodule.recurse true"], - }, - "runOptions": { - "runOn": "folderOpen" - }, - "presentation": { - "reveal": "silent" - }, - }, + // { + // "label": "set git config recurse submodules", + // "type": "shell", + // "linux": { + // "command": [" git config submodule.recurse true"], + // }, + // "runOptions": { + // "runOn": "folderOpen" + // }, + // "presentation": { + // "reveal": "silent" + // }, + // }, ], "inputs": [ { diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..167cf61 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,17 @@ +# Agent Instructions + +## Development Environment + +This project uses a devcontainer with pixi for environment management. + +### Available Tools + +- **GitHub CLI (`gh`)**: Available via `pixi run gh` or directly if using a login shell. The container mounts the host's `~/.config/gh`, so if you are authenticated on the host, that authentication is shared -- including in a container opened without `dl`, such as a plain `devpod up` or VS Code's Reopen in Container. Under `dl` there is also a forwarded `GH_TOKEN` (taken from `GH_TOKEN`, `GITHUB_TOKEN` or `gh auth token`, whichever answers first), and that takes precedence over the mounted `hosts.yml`. + +### Running Commands + +When using pixi tasks, prefer `pixi run `. See `pixi task list` for available tasks. + +For tools installed as dependencies (like `gh`), you can run them via: +- `pixi run gh ` - works in any shell +- `gh ` - works in login shells (`bash -l -c '...'`) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c4b67e..2ca009b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,4 +2,4 @@ ## stats_explorer -## [0.0.0] +## [0.2.0] diff --git a/CLAUDE.md b/CLAUDE.md new file mode 120000 index 0000000..47dc3e3 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +AGENTS.md \ No newline at end of file diff --git a/PROMPT.md b/PROMPT.md new file mode 100644 index 0000000..0f9a73b --- /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 check, ruff format --check, 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/README.md b/README.md index 96cc013..b8385f6 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,16 @@ This has basic setup for * pypi upload * dependabot +## One ruff version + +Ruff is pinned once, as `ruff==X.Y.Z` in `pyproject.toml`. Everything else runs that ruff from the pixi environment: + +* `pixi run lint` and `pixi run ci` run `ruff check .` and `ruff format --check .` +* the prek hooks in `.pre-commit-config.yaml` are `repo: local` hooks that run `pixi run --locked ruff ...`, so they carry no version of their own +* CI (`ci.yml` and `prek.yaml`) installs the pixi environment with `setup-pixi` and `locked: true`, so CI fails when `pixi.lock` does not match `pyproject.toml`. It does not run a stale ruff. + +To change the ruff version, edit the pin in `pyproject.toml` and run `pixi lock`. Dependabot changes only `pyproject.toml`, so run `pixi lock` on its PR before you merge it. Do not add a `rev:` for ruff to `.pre-commit-config.yaml` or a `version:` to a ruff GitHub action. + ## Continuous Integration Status [![Ci](https://github.com/blooop/stats_explorer/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/blooop/stats_explorer/actions/workflows/ci.yml?query=branch%3Amain) @@ -31,10 +41,35 @@ There are two methods of using this project. 1. Use github to use this project as a template 2. Clone the project and run, `scripts/update_from_template.sh` and then run the `scripts/rename_project.sh` to rename the project. -If you want to use docker you may want to run the `scripts/setup_host.sh` script. It will set up docker and nvidia-docker (assuming you are on ubuntu22.04). +If you want to use docker you may want to run the `scripts/setup_host.sh` script. It will set up docker and the NVIDIA Container Toolkit (tested on ubuntu 22.04/24.04/26.04). If you are using pixi, look at the available tasks in pyproject.toml If you are new to pixi follow the instructions on the pixi [website](https://prefix.dev/) +# Claude Code Online Support + +This repo includes built-in support for [Claude Code](https://docs.claude.com/claude-code) online environment! The `.claude/hooks/SessionStart` script automatically: + +- Installs pixi package manager +- Sets up all project dependencies +- Configures prek hooks +- Prepares the development environment + +**Quick Start with Claude Code:** +1. Open this repository in Claude Code online +2. The environment sets up automatically via the SessionStart hook +3. Claude can immediately run commands like `pixi run test`, `pixi run lint`, etc. + +**Manual activation (if needed):** +```bash +source .claude/activate.sh +``` + +See [.claude/README.md](.claude/README.md) for detailed information about the Claude Code configuration. + +# Devcontainer + +The devcontainer uses the prebuilt image from the template repository (`ghcr.io/blooop/python_template/devcontainer:latest`) for fast startup. This repo does not carry the template's `.devcontainer/Dockerfile` or the `dev-use-local` / `dev-use-prebuilt` tasks; to build the image locally, bring them over from [blooop/python_template](https://github.com/blooop/python_template) first. + # Github setup There are github workflows for CI, codecov and automated pypi publishing in `ci.yml` and `publish.yml`. @@ -75,7 +110,7 @@ pixi run ci ## Legacy -If you don't want to install rocker on your system but want to use vscode, you can run the `scripts/launch_vscode.sh` script to build and connect to a docker container. It will install rocker in a venv. The docker container is dynamically generated using [rocker](https://github.com/osrf/rocker) and [deps rocker](https://github.com/blooop/deps_rocker). [deps rocker](https://github.com/blooop/deps_rocker) looks at the stats_explorer.deps.yaml file to install any required apt, pip or shell scripts and launches a container that vscode attaches to. +If you don't want to install rocker on your system but want to use vscode, you can run the `scripts/launch_vscode.sh` script to build and connect to a docker container. It will install rocker in a venv. The docker container is dynamically generated using [rocker](https://github.com/osrf/rocker) and the configuration in `rockerc.yaml`. ## Troubleshooting diff --git a/docs/intro.rst b/docs/intro.rst index 0a248a5..6a410ee 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -20,8 +20,8 @@ This has basic setup for [![GitHub issues](https://img.shields.io/github/issues/blooop/stats_explorer.svg)](https://GitHub.com/blooop/stats_explorer/issues/) [![GitHub pull-requests merged](https://badgen.net/github/merged-prs/blooop/stats_explorer)](https://github.com/blooop/stats_explorer/pulls?q=is%3Amerged) [![GitHub release](https://img.shields.io/github/release/blooop/stats_explorer.svg)](https://GitHub.com/blooop/stats_explorer/releases/) -[![License](https://img.shields.io/pypi/l/bencher)](https://opensource.org/license/mit/) -[![Python](https://img.shields.io/badge/python-3.10%20%7C%203.11-blue)](https://www.python.org/downloads/release/python-310/) +[![License](https://img.shields.io/github/license/blooop/stats_explorer)](https://opensource.org/license/mit/) +[![Python](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue)](https://www.python.org/downloads/) To set up your project run the vscode task "pull updates from template repo" and then task "rename project template name" diff --git a/pixi.lock b/pixi.lock index 4fb6747..04e8756 100644 --- a/pixi.lock +++ b/pixi.lock @@ -10,6 +10,7 @@ environments: default: channels: - url: https://conda.anaconda.org/conda-forge/ + - url: https://prefix.dev/blooop/ indexes: - https://pypi.org/simple packages: @@ -18,6 +19,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-h4bc722e_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2025.1.31-hbcca054_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gh-2.103.2-hfc2019e_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.43-h712a8e2_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.6.4-h5888daf_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.4.6-h2dba641_0.conda @@ -34,31 +36,28 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.13.2-hf636f53_100_cp313.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/python_abi-3.13-5_cp313.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.2-h8228510_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/shellcheck-0.10.0-ha770c72_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda + - conda: https://prefix.dev/blooop/linux-64/devpod-0.8.12-hb0f4dca_0.conda + - conda: https://prefix.dev/blooop/linux-64/ralph-orchestrator-2.6.0-hb0f4dca_0.conda - pypi: ./ - - pypi: https://files.pythonhosted.org/packages/03/00/1fd4a117c6c93f2dcc5b7edaeaf53ea45332ef966429be566ca16c2beb94/identify-2.6.7-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/04/24/b7721e4845c2f162d26f50521b825fb061bc0a5afcf9a386840f23ea19fa/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/11/92/76a1c94d3afee238333bc0a42b82935dd8f9cf8ce9e336ff87ee14d9e1cf/pytest-8.3.4-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/16/8f/496e10d51edd6671ebe0432e33ff800aa86775d2d147ce7d43389324a525/pre_commit-4.0.1-py2.py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/01/f8/c151e196d4f397ed9436a071e52666c70a2f021138dea828b0a461e245db/hypothesis-6.155.7-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/36/3b/48e79f2cd6a61dbbd4807b4ed46cb564b4fd50a76166b1c4ea5c1d9e2371/pytest_cov-6.0.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/3c/a6/bc1012356d8ece4d66dd75c4b9fc6c1f6650ddd5991e421177d9f8f671be/platformdirs-4.3.6-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/61/0b/7f61da4015f561b288c3b91e745c8ba81b98a2d02f414e9e1c9388050aee/hypothesis-6.123.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/68/84/21f578c2a4144917985f1f4011171aeff94ab18dfa5303ac632da2f9af36/ruff-0.8.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/82/50/dfce42eff2cecabcd5a9bbad5489449c87db3415f408d23ffee417ce01f6/coverage-7.14.3-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl - pypi: https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/89/ec/00d68c4ddfedfe64159999e5f8a98fb8442729a63e2077eb9dcd89623d27/filelock-3.17.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/91/a1/cf2472db20f7ce4a6be1253a81cfdf85ad9c7885ffbed7047fb72c24cf87/distlib-0.3.9-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/93/fa/849483d56773ae29740ae70043ad88e068f98a6401aa819b5d6bee604683/virtualenv-20.29.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/9a/0b/7797d4193f5adb4b837207ed87fecf5fc38f7cc612b369a8e8e12d9fa114/coverage-7.6.10-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/c5/55/51844dd50c4fc7a33b653bfaba4c2456f06955289ca770a5dbd5fd267374/cfgv-3.4.0-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/d2/1d/1b658dbd2b9fa9c4c9f32accbfc0205d532c8c6194dc0f2a4c0428e7128a/nodeenv-1.9.1-py2.py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/9d/7a/d968e294073affff457b041c2be9868a40c1c71f4a35fcc1e45e5493067b/pytest_cov-7.1.0-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/a5/26/c250c2c569adc53a8591716641388397bcb2a442e4a30b952ae81b50c0e0/ty-0.0.65-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/bb/1c/c6a7800406f987559fc8e7c2cfd257a5a68096e806e953f143b488e00e4f/prek-0.4.14-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/c3/d8/59894cf630d2d86882457a2a6a0a1533410c5c805bfbac6f6eb4b5aef69d/ruff-0.17.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fc/30/d4986a882011f9df997a55e6becd864812ccfcd821d64aac8570ee39f719/attrs-25.1.0-py3-none-any.whl py310: channels: - url: https://conda.anaconda.org/conda-forge/ + - url: https://prefix.dev/blooop/ indexes: - https://pypi.org/simple packages: @@ -67,6 +66,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-h4bc722e_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2025.1.31-hbcca054_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gh-2.103.2-hfc2019e_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.43-h712a8e2_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.4.6-h2dba641_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-14.2.0-h77fa898_1.conda @@ -82,33 +82,30 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.4.1-h7b32b05_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.10.16-he725a3c_1_cpython.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.2-h8228510_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/shellcheck-0.10.0-ha770c72_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda + - conda: https://prefix.dev/blooop/linux-64/devpod-0.8.12-hb0f4dca_0.conda + - conda: https://prefix.dev/blooop/linux-64/ralph-orchestrator-2.6.0-hb0f4dca_0.conda - pypi: ./ + - pypi: https://files.pythonhosted.org/packages/01/f8/c151e196d4f397ed9436a071e52666c70a2f021138dea828b0a461e245db/hypothesis-6.155.7-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/02/cc/b7e31358aac6ed1ef2bb790a9746ac2c69bcb3c8588b41616914eb106eaf/exceptiongroup-1.2.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/03/00/1fd4a117c6c93f2dcc5b7edaeaf53ea45332ef966429be566ca16c2beb94/identify-2.6.7-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/11/92/76a1c94d3afee238333bc0a42b82935dd8f9cf8ce9e336ff87ee14d9e1cf/pytest-8.3.4-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/16/8f/496e10d51edd6671ebe0432e33ff800aa86775d2d147ce7d43389324a525/pre_commit-4.0.1-py2.py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/36/3b/48e79f2cd6a61dbbd4807b4ed46cb564b4fd50a76166b1c4ea5c1d9e2371/pytest_cov-6.0.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/3c/a6/bc1012356d8ece4d66dd75c4b9fc6c1f6650ddd5991e421177d9f8f671be/platformdirs-4.3.6-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/61/0b/7f61da4015f561b288c3b91e745c8ba81b98a2d02f414e9e1c9388050aee/hypothesis-6.123.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/68/84/21f578c2a4144917985f1f4011171aeff94ab18dfa5303ac632da2f9af36/ruff-0.8.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/6b/4e/1523cb902fd98355e2e9ea5e5eb237cbc5f3ad5f3075fa65087aa0ecb669/PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/6d/85/fc0de2bcda3f97c2ee9fe8568f7d48f7279e91068958e5b2cc19e0e5f600/coverage-7.6.10-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/6e/c2/61d3e0f47e2b74ef40a68b9e6ad5984f6241a942f7cd3bbfbdbd03861ea9/tomli-2.2.1-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/89/ec/00d68c4ddfedfe64159999e5f8a98fb8442729a63e2077eb9dcd89623d27/filelock-3.17.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/91/a1/cf2472db20f7ce4a6be1253a81cfdf85ad9c7885ffbed7047fb72c24cf87/distlib-0.3.9-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/93/fa/849483d56773ae29740ae70043ad88e068f98a6401aa819b5d6bee604683/virtualenv-20.29.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/c5/55/51844dd50c4fc7a33b653bfaba4c2456f06955289ca770a5dbd5fd267374/cfgv-3.4.0-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/d2/1d/1b658dbd2b9fa9c4c9f32accbfc0205d532c8c6194dc0f2a4c0428e7128a/nodeenv-1.9.1-py2.py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/9d/7a/d968e294073affff457b041c2be9868a40c1c71f4a35fcc1e45e5493067b/pytest_cov-7.1.0-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/a5/26/c250c2c569adc53a8591716641388397bcb2a442e4a30b952ae81b50c0e0/ty-0.0.65-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/bb/1c/c6a7800406f987559fc8e7c2cfd257a5a68096e806e953f143b488e00e4f/prek-0.4.14-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/c3/d8/59894cf630d2d86882457a2a6a0a1533410c5c805bfbac6f6eb4b5aef69d/ruff-0.17.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/da/bb/e9ecea1307c6a549c223842cccbd5d55193cc27b82f26338782d4355047c/coverage-7.14.3-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl - pypi: https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fc/30/d4986a882011f9df997a55e6becd864812ccfcd821d64aac8570ee39f719/attrs-25.1.0-py3-none-any.whl py311: channels: - url: https://conda.anaconda.org/conda-forge/ + - url: https://prefix.dev/blooop/ indexes: - https://pypi.org/simple packages: @@ -117,6 +114,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-h4bc722e_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2025.1.31-hbcca054_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gh-2.103.2-hfc2019e_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.43-h712a8e2_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.6.4-h5888daf_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.4.6-h2dba641_0.conda @@ -133,31 +131,28 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.4.1-h7b32b05_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.11.11-h9e4cc4f_1_cpython.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.2-h8228510_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/shellcheck-0.10.0-ha770c72_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda + - conda: https://prefix.dev/blooop/linux-64/devpod-0.8.12-hb0f4dca_0.conda + - conda: https://prefix.dev/blooop/linux-64/ralph-orchestrator-2.6.0-hb0f4dca_0.conda - pypi: ./ - - pypi: https://files.pythonhosted.org/packages/03/00/1fd4a117c6c93f2dcc5b7edaeaf53ea45332ef966429be566ca16c2beb94/identify-2.6.7-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/11/92/76a1c94d3afee238333bc0a42b82935dd8f9cf8ce9e336ff87ee14d9e1cf/pytest-8.3.4-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/16/8f/496e10d51edd6671ebe0432e33ff800aa86775d2d147ce7d43389324a525/pre_commit-4.0.1-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/2c/f8/ef009b3b98e9f7033c19deb40d629354aab1d8b2d7f9cfec284dbedf5096/coverage-7.6.10-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/01/f8/c151e196d4f397ed9436a071e52666c70a2f021138dea828b0a461e245db/hypothesis-6.155.7-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/36/3b/48e79f2cd6a61dbbd4807b4ed46cb564b4fd50a76166b1c4ea5c1d9e2371/pytest_cov-6.0.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/3c/a6/bc1012356d8ece4d66dd75c4b9fc6c1f6650ddd5991e421177d9f8f671be/platformdirs-4.3.6-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/61/0b/7f61da4015f561b288c3b91e745c8ba81b98a2d02f414e9e1c9388050aee/hypothesis-6.123.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/68/84/21f578c2a4144917985f1f4011171aeff94ab18dfa5303ac632da2f9af36/ruff-0.8.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/75/e4/2c27590dfc9992f73aabbeb9241ae20220bd9452df27483b6e56d3975cc5/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/39/7f/117dd2ec65e4140576f8ef991d88220f9b806769f7a8c20e0550c0f924e2/coverage-7.14.3-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/89/ec/00d68c4ddfedfe64159999e5f8a98fb8442729a63e2077eb9dcd89623d27/filelock-3.17.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/91/a1/cf2472db20f7ce4a6be1253a81cfdf85ad9c7885ffbed7047fb72c24cf87/distlib-0.3.9-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/93/fa/849483d56773ae29740ae70043ad88e068f98a6401aa819b5d6bee604683/virtualenv-20.29.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/c5/55/51844dd50c4fc7a33b653bfaba4c2456f06955289ca770a5dbd5fd267374/cfgv-3.4.0-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/d2/1d/1b658dbd2b9fa9c4c9f32accbfc0205d532c8c6194dc0f2a4c0428e7128a/nodeenv-1.9.1-py2.py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/9d/7a/d968e294073affff457b041c2be9868a40c1c71f4a35fcc1e45e5493067b/pytest_cov-7.1.0-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/a5/26/c250c2c569adc53a8591716641388397bcb2a442e4a30b952ae81b50c0e0/ty-0.0.65-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/bb/1c/c6a7800406f987559fc8e7c2cfd257a5a68096e806e953f143b488e00e4f/prek-0.4.14-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/c3/d8/59894cf630d2d86882457a2a6a0a1533410c5c805bfbac6f6eb4b5aef69d/ruff-0.17.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fc/30/d4986a882011f9df997a55e6becd864812ccfcd821d64aac8570ee39f719/attrs-25.1.0-py3-none-any.whl py312: channels: - url: https://conda.anaconda.org/conda-forge/ + - url: https://prefix.dev/blooop/ indexes: - https://pypi.org/simple packages: @@ -166,6 +161,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-h4bc722e_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2025.1.31-hbcca054_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gh-2.103.2-hfc2019e_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.43-h712a8e2_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.6.4-h5888daf_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.4.6-h2dba641_0.conda @@ -182,31 +178,28 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.4.1-h7b32b05_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.12.9-h9e4cc4f_0_cpython.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.2-h8228510_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/shellcheck-0.10.0-ha770c72_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda + - conda: https://prefix.dev/blooop/linux-64/devpod-0.8.12-hb0f4dca_0.conda + - conda: https://prefix.dev/blooop/linux-64/ralph-orchestrator-2.6.0-hb0f4dca_0.conda - pypi: ./ - - pypi: https://files.pythonhosted.org/packages/03/00/1fd4a117c6c93f2dcc5b7edaeaf53ea45332ef966429be566ca16c2beb94/identify-2.6.7-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/11/92/76a1c94d3afee238333bc0a42b82935dd8f9cf8ce9e336ff87ee14d9e1cf/pytest-8.3.4-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/16/8f/496e10d51edd6671ebe0432e33ff800aa86775d2d147ce7d43389324a525/pre_commit-4.0.1-py2.py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/01/f8/c151e196d4f397ed9436a071e52666c70a2f021138dea828b0a461e245db/hypothesis-6.155.7-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/06/c2/05b8c890097c61a7f4406b35396b997a635200ded0339eda83dfbe526c5f/coverage-7.14.3-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/36/3b/48e79f2cd6a61dbbd4807b4ed46cb564b4fd50a76166b1c4ea5c1d9e2371/pytest_cov-6.0.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/3c/a6/bc1012356d8ece4d66dd75c4b9fc6c1f6650ddd5991e421177d9f8f671be/platformdirs-4.3.6-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/61/0b/7f61da4015f561b288c3b91e745c8ba81b98a2d02f414e9e1c9388050aee/hypothesis-6.123.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/68/84/21f578c2a4144917985f1f4011171aeff94ab18dfa5303ac632da2f9af36/ruff-0.8.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/89/ec/00d68c4ddfedfe64159999e5f8a98fb8442729a63e2077eb9dcd89623d27/filelock-3.17.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/91/a1/cf2472db20f7ce4a6be1253a81cfdf85ad9c7885ffbed7047fb72c24cf87/distlib-0.3.9-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/93/fa/849483d56773ae29740ae70043ad88e068f98a6401aa819b5d6bee604683/virtualenv-20.29.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/b9/2b/614b4752f2e127db5cc206abc23a8c19678e92b23c3db30fc86ab731d3bd/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/c5/55/51844dd50c4fc7a33b653bfaba4c2456f06955289ca770a5dbd5fd267374/cfgv-3.4.0-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/d2/1d/1b658dbd2b9fa9c4c9f32accbfc0205d532c8c6194dc0f2a4c0428e7128a/nodeenv-1.9.1-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/dc/03/0334a79b26ecf59958f2fe9dd1f5ab3e2f88db876f5071933de39af09647/coverage-7.6.10-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/9d/7a/d968e294073affff457b041c2be9868a40c1c71f4a35fcc1e45e5493067b/pytest_cov-7.1.0-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/a5/26/c250c2c569adc53a8591716641388397bcb2a442e4a30b952ae81b50c0e0/ty-0.0.65-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/bb/1c/c6a7800406f987559fc8e7c2cfd257a5a68096e806e953f143b488e00e4f/prek-0.4.14-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/c3/d8/59894cf630d2d86882457a2a6a0a1533410c5c805bfbac6f6eb4b5aef69d/ruff-0.17.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fc/30/d4986a882011f9df997a55e6becd864812ccfcd821d64aac8570ee39f719/attrs-25.1.0-py3-none-any.whl py313: channels: - url: https://conda.anaconda.org/conda-forge/ + - url: https://prefix.dev/blooop/ indexes: - https://pypi.org/simple packages: @@ -215,6 +208,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-h4bc722e_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2025.1.31-hbcca054_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gh-2.103.2-hfc2019e_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.43-h712a8e2_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.6.4-h5888daf_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.4.6-h2dba641_0.conda @@ -231,28 +225,24 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.13.2-hf636f53_100_cp313.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/python_abi-3.13-5_cp313.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.2-h8228510_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/shellcheck-0.10.0-ha770c72_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda + - conda: https://prefix.dev/blooop/linux-64/devpod-0.8.12-hb0f4dca_0.conda + - conda: https://prefix.dev/blooop/linux-64/ralph-orchestrator-2.6.0-hb0f4dca_0.conda - pypi: ./ - - pypi: https://files.pythonhosted.org/packages/03/00/1fd4a117c6c93f2dcc5b7edaeaf53ea45332ef966429be566ca16c2beb94/identify-2.6.7-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/04/24/b7721e4845c2f162d26f50521b825fb061bc0a5afcf9a386840f23ea19fa/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/11/92/76a1c94d3afee238333bc0a42b82935dd8f9cf8ce9e336ff87ee14d9e1cf/pytest-8.3.4-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/16/8f/496e10d51edd6671ebe0432e33ff800aa86775d2d147ce7d43389324a525/pre_commit-4.0.1-py2.py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/01/f8/c151e196d4f397ed9436a071e52666c70a2f021138dea828b0a461e245db/hypothesis-6.155.7-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/36/3b/48e79f2cd6a61dbbd4807b4ed46cb564b4fd50a76166b1c4ea5c1d9e2371/pytest_cov-6.0.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/3c/a6/bc1012356d8ece4d66dd75c4b9fc6c1f6650ddd5991e421177d9f8f671be/platformdirs-4.3.6-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/61/0b/7f61da4015f561b288c3b91e745c8ba81b98a2d02f414e9e1c9388050aee/hypothesis-6.123.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/68/84/21f578c2a4144917985f1f4011171aeff94ab18dfa5303ac632da2f9af36/ruff-0.8.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/82/50/dfce42eff2cecabcd5a9bbad5489449c87db3415f408d23ffee417ce01f6/coverage-7.14.3-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl - pypi: https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/89/ec/00d68c4ddfedfe64159999e5f8a98fb8442729a63e2077eb9dcd89623d27/filelock-3.17.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/91/a1/cf2472db20f7ce4a6be1253a81cfdf85ad9c7885ffbed7047fb72c24cf87/distlib-0.3.9-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/93/fa/849483d56773ae29740ae70043ad88e068f98a6401aa819b5d6bee604683/virtualenv-20.29.2-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/9a/0b/7797d4193f5adb4b837207ed87fecf5fc38f7cc612b369a8e8e12d9fa114/coverage-7.6.10-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/c5/55/51844dd50c4fc7a33b653bfaba4c2456f06955289ca770a5dbd5fd267374/cfgv-3.4.0-py2.py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/d2/1d/1b658dbd2b9fa9c4c9f32accbfc0205d532c8c6194dc0f2a4c0428e7128a/nodeenv-1.9.1-py2.py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/9d/7a/d968e294073affff457b041c2be9868a40c1c71f4a35fcc1e45e5493067b/pytest_cov-7.1.0-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/a5/26/c250c2c569adc53a8591716641388397bcb2a442e4a30b952ae81b50c0e0/ty-0.0.65-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/bb/1c/c6a7800406f987559fc8e7c2cfd257a5a68096e806e953f143b488e00e4f/prek-0.4.14-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/c3/d8/59894cf630d2d86882457a2a6a0a1533410c5c805bfbac6f6eb4b5aef69d/ruff-0.17.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fc/30/d4986a882011f9df997a55e6becd864812ccfcd821d64aac8570ee39f719/attrs-25.1.0-py3-none-any.whl packages: - conda: https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2 sha256: fe51de6107f9edc7aa4f786a70f4a883943bc9d39b3bb7307c04c41410990726 @@ -293,6 +283,15 @@ packages: purls: [] size: 158144 timestamp: 1738298224464 +- conda: https://conda.anaconda.org/conda-forge/linux-64/gh-2.103.2-hfc2019e_0.conda + sha256: a99950b886c11726015ea167f946fe416547575ea62e6b8d11aa6e40c581d766 + md5: 6c8c3c6713b480a29662cac4ce816626 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 13729719 + timestamp: 1792803664991 - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.43-h712a8e2_2.conda sha256: 7c91cea91b13f4314d125d1bedb9d03a29ebbd5080ccdea70260363424646dbe md5: 048b02e3962f066da18efe3a21b77672 @@ -590,6 +589,15 @@ packages: purls: [] size: 281456 timestamp: 1679532220005 +- conda: https://conda.anaconda.org/conda-forge/linux-64/shellcheck-0.10.0-ha770c72_1.conda + sha256: 0f20aee02b458776c6003def9598dd73560b95dd21303ca7fda054316dddb5ef + md5: 1b4f8a41ced6f4a8872aa6fc83f25612 + license: GPL-3.0-only + license_family: GPL + purls: [] + run_exports: {} + size: 2599352 + timestamp: 1790684946476 - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda sha256: e0569c9caa68bf476bead1bed3d79650bb080b532c64a4af7d8ca286c08dea4e md5: d453b98d9c83e71da0741bb0ff4d76bc @@ -608,174 +616,138 @@ packages: purls: [] size: 122921 timestamp: 1737119101255 +- conda: https://prefix.dev/blooop/linux-64/devpod-0.8.12-hb0f4dca_0.conda + sha256: bb6fd40fda5500c6b29ba56c0b2108e12aa1a8e63b106c084a95123a511e8564 + license: MPL-2.0 + license_family: MOZILLA + run_exports: {} + size: 27468597 + timestamp: 1767671008593 +- conda: https://prefix.dev/blooop/linux-64/ralph-orchestrator-2.6.0-hb0f4dca_0.conda + sha256: 701849bf71dce7e5225a2cb0714a079f25ce17763c8b751f6f1c36e1434dcd5a + md5: 3d23dee3d7a5cefb136c26c9dd2d8d21 + license: MIT + license_family: MIT + run_exports: {} + size: 6527009 + timestamp: 1771993517565 - pypi: ./ name: stats-explorer requires_dist: - - pytest-cov>=4.1,<=6.0.0 ; extra == 'test' - - pytest>=7.4,<=8.3.4 ; extra == 'test' - - hypothesis>=6.104.2,<=6.126.0 ; extra == 'test' - - ruff>=0.5.0,<=0.9.7 ; extra == 'test' - - coverage>=7.5.4,<=7.6.12 ; extra == 'test' - - pre-commit<=4.1.0 ; extra == 'test' -- pypi: https://files.pythonhosted.org/packages/02/cc/b7e31358aac6ed1ef2bb790a9746ac2c69bcb3c8588b41616914eb106eaf/exceptiongroup-1.2.2-py3-none-any.whl - name: exceptiongroup - version: 1.2.2 - sha256: 3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b - requires_dist: - - pytest>=6 ; extra == 'test' - requires_python: '>=3.7' -- pypi: https://files.pythonhosted.org/packages/03/00/1fd4a117c6c93f2dcc5b7edaeaf53ea45332ef966429be566ca16c2beb94/identify-2.6.7-py2.py3-none-any.whl - name: identify - version: 2.6.7 - sha256: 155931cb617a401807b09ecec6635d6c692d180090a1cedca8ef7d58ba5b6aa0 - requires_dist: - - ukkonen ; extra == 'license' - requires_python: '>=3.9' -- pypi: https://files.pythonhosted.org/packages/04/24/b7721e4845c2f162d26f50521b825fb061bc0a5afcf9a386840f23ea19fa/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - name: pyyaml - version: 6.0.2 - sha256: 70b189594dbe54f75ab3a1acec5f1e3faa7e8cf2f1e08d9b561cb41b845f69d5 - requires_python: '>=3.8' -- pypi: https://files.pythonhosted.org/packages/11/92/76a1c94d3afee238333bc0a42b82935dd8f9cf8ce9e336ff87ee14d9e1cf/pytest-8.3.4-py3-none-any.whl - name: pytest - version: 8.3.4 - sha256: 50e16d954148559c9a74109af1eaf0c945ba2d8f30f0a3d3335edde19788b6f6 - requires_dist: - - colorama ; sys_platform == 'win32' - - exceptiongroup>=1.0.0rc8 ; python_full_version < '3.11' - - iniconfig - - packaging - - pluggy>=1.5,<2 - - tomli>=1 ; python_full_version < '3.11' - - argcomplete ; extra == 'dev' - - attrs>=19.2 ; extra == 'dev' - - hypothesis>=3.56 ; extra == 'dev' - - mock ; extra == 'dev' - - pygments>=2.7.2 ; extra == 'dev' - - requests ; extra == 'dev' - - setuptools ; extra == 'dev' - - xmlschema ; extra == 'dev' - requires_python: '>=3.8' -- pypi: https://files.pythonhosted.org/packages/16/8f/496e10d51edd6671ebe0432e33ff800aa86775d2d147ce7d43389324a525/pre_commit-4.0.1-py2.py3-none-any.whl - name: pre-commit - version: 4.0.1 - sha256: efde913840816312445dc98787724647c65473daefe420785f885e8ed9a06878 - requires_dist: - - cfgv>=2.0.0 - - identify>=1.0.0 - - nodeenv>=0.11.1 - - pyyaml>=5.1 - - virtualenv>=20.10.0 - requires_python: '>=3.9' -- pypi: https://files.pythonhosted.org/packages/2c/f8/ef009b3b98e9f7033c19deb40d629354aab1d8b2d7f9cfec284dbedf5096/coverage-7.6.10-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl - name: coverage - version: 7.6.10 - sha256: 0d7a2bf79378d8fb8afaa994f91bfd8215134f8631d27eba3e0e2c13546ce994 - requires_dist: - - tomli ; python_full_version <= '3.11' and extra == 'toml' - requires_python: '>=3.9' -- pypi: https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl - name: sortedcontainers - version: 2.4.0 - sha256: a163dcaede0f1c021485e957a39245190e74249897e2ae4b2aa38595db237ee0 -- pypi: https://files.pythonhosted.org/packages/36/3b/48e79f2cd6a61dbbd4807b4ed46cb564b4fd50a76166b1c4ea5c1d9e2371/pytest_cov-6.0.0-py3-none-any.whl - name: pytest-cov - version: 6.0.0 - sha256: eee6f1b9e61008bd34975a4d5bab25801eb31898b032dd55addc93e96fcaaa35 - requires_dist: - - pytest>=4.6 - - coverage[toml]>=7.5 - - fields ; extra == 'testing' - - hunter ; extra == 'testing' - - process-tests ; extra == 'testing' - - pytest-xdist ; extra == 'testing' - - virtualenv ; extra == 'testing' - requires_python: '>=3.9' -- pypi: https://files.pythonhosted.org/packages/3c/a6/bc1012356d8ece4d66dd75c4b9fc6c1f6650ddd5991e421177d9f8f671be/platformdirs-4.3.6-py3-none-any.whl - name: platformdirs - version: 4.3.6 - sha256: 73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb - requires_dist: - - furo>=2024.8.6 ; extra == 'docs' - - proselint>=0.14 ; extra == 'docs' - - sphinx-autodoc-typehints>=2.4 ; extra == 'docs' - - sphinx>=8.0.2 ; extra == 'docs' - - appdirs==1.4.4 ; extra == 'test' - - covdefaults>=2.3 ; extra == 'test' - - pytest-cov>=5 ; extra == 'test' - - pytest-mock>=3.14 ; extra == 'test' - - pytest>=8.3.2 ; extra == 'test' - - mypy>=1.11.2 ; extra == 'type' - requires_python: '>=3.8' -- pypi: https://files.pythonhosted.org/packages/61/0b/7f61da4015f561b288c3b91e745c8ba81b98a2d02f414e9e1c9388050aee/hypothesis-6.123.2-py3-none-any.whl + - pytest-cov<=7.1.0,>=7.1.0 ; extra == 'test' + - pytest<=9.1.1,>=9.1.1 ; extra == 'test' + - hypothesis<=6.155.7,>=6.155.7 ; extra == 'test' + - ruff==0.17.2 ; extra == 'test' + - coverage<=7.14.3,>=7.14.3 ; extra == 'test' + - prek>=0.4.6,<0.5.0 ; extra == 'test' + - ty<=0.0.65,>=0.0.65 ; extra == 'test' +- pypi: https://files.pythonhosted.org/packages/01/f8/c151e196d4f397ed9436a071e52666c70a2f021138dea828b0a461e245db/hypothesis-6.155.7-py3-none-any.whl name: hypothesis - version: 6.123.2 - sha256: 0a8bf07753f1436f1b8697a13ea955f3fef3ef7b477c2972869b1d142bcdb30e + version: 6.155.7 + sha256: 9f634bdb1f9e9b8ab6ba09431cf2deedb750c96978125a6fb3c5a0f6c6db4131 requires_dist: - - attrs>=22.2.0 - exceptiongroup>=1.0.0 ; python_full_version < '3.11' - sortedcontainers>=2.1.0,<3.0.0 - click>=7.0 ; extra == 'cli' - - black>=19.10b0 ; extra == 'cli' + - black>=20.8b0 ; extra == 'cli' - rich>=9.0.0 ; extra == 'cli' - libcst>=0.3.16 ; extra == 'codemods' - - black>=19.10b0 ; extra == 'ghostwriter' + - black>=20.8b0 ; extra == 'ghostwriter' - pytz>=2014.1 ; extra == 'pytz' - python-dateutil>=1.4 ; extra == 'dateutil' - lark>=0.10.1 ; extra == 'lark' - - numpy>=1.19.3 ; extra == 'numpy' + - numpy>=1.21.6 ; extra == 'numpy' - pandas>=1.1 ; extra == 'pandas' - pytest>=4.6 ; extra == 'pytest' - dpcontracts>=0.4 ; extra == 'dpcontracts' - redis>=3.0.0 ; extra == 'redis' - - hypothesis-crosshair>=0.0.18 ; extra == 'crosshair' - - crosshair-tool>=0.0.78 ; extra == 'crosshair' - - tzdata>=2024.2 ; (sys_platform == 'emscripten' and extra == 'zoneinfo') or (sys_platform == 'win32' and extra == 'zoneinfo') - - django>=4.2 ; extra == 'django' - - black>=19.10b0 ; extra == 'all' + - hypothesis-crosshair>=0.0.28 ; extra == 'crosshair' + - crosshair-tool>=0.0.106 ; extra == 'crosshair' + - tzdata>=2026.2 ; (sys_platform == 'emscripten' and extra == 'zoneinfo') or (sys_platform == 'win32' and extra == 'zoneinfo') + - django>=5.2 ; extra == 'django' + - watchdog>=4.0.0 ; extra == 'watchdog' + - black>=20.8b0 ; extra == 'all' - click>=7.0 ; extra == 'all' - - crosshair-tool>=0.0.78 ; extra == 'all' - - django>=4.2 ; extra == 'all' + - crosshair-tool>=0.0.106 ; extra == 'all' + - django>=5.2 ; extra == 'all' - dpcontracts>=0.4 ; extra == 'all' - - hypothesis-crosshair>=0.0.18 ; extra == 'all' + - hypothesis-crosshair>=0.0.28 ; extra == 'all' - lark>=0.10.1 ; extra == 'all' - libcst>=0.3.16 ; extra == 'all' - - numpy>=1.19.3 ; extra == 'all' + - numpy>=1.21.6 ; extra == 'all' - pandas>=1.1 ; extra == 'all' - pytest>=4.6 ; extra == 'all' - python-dateutil>=1.4 ; extra == 'all' - pytz>=2014.1 ; extra == 'all' - redis>=3.0.0 ; extra == 'all' - rich>=9.0.0 ; extra == 'all' - - tzdata>=2024.2 ; (sys_platform == 'emscripten' and extra == 'all') or (sys_platform == 'win32' and extra == 'all') - requires_python: '>=3.9' -- pypi: https://files.pythonhosted.org/packages/68/84/21f578c2a4144917985f1f4011171aeff94ab18dfa5303ac632da2f9af36/ruff-0.8.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - name: ruff - version: 0.8.6 - sha256: 7ae4478b1471fc0c44ed52a6fb787e641a2ac58b1c1f91763bafbc2faddc5117 + - tzdata>=2026.2 ; (sys_platform == 'emscripten' and extra == 'all') or (sys_platform == 'win32' and extra == 'all') + - watchdog>=4.0.0 ; extra == 'all' + requires_python: '>=3.10' +- pypi: https://files.pythonhosted.org/packages/02/cc/b7e31358aac6ed1ef2bb790a9746ac2c69bcb3c8588b41616914eb106eaf/exceptiongroup-1.2.2-py3-none-any.whl + name: exceptiongroup + version: 1.2.2 + sha256: 3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b + requires_dist: + - pytest>=6 ; extra == 'test' requires_python: '>=3.7' -- pypi: https://files.pythonhosted.org/packages/6b/4e/1523cb902fd98355e2e9ea5e5eb237cbc5f3ad5f3075fa65087aa0ecb669/PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - name: pyyaml - version: 6.0.2 - sha256: ec031d5d2feb36d1d1a24380e4db6d43695f3748343d99434e6f5f9156aaa2ed - requires_python: '>=3.8' -- pypi: https://files.pythonhosted.org/packages/6d/85/fc0de2bcda3f97c2ee9fe8568f7d48f7279e91068958e5b2cc19e0e5f600/coverage-7.6.10-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl +- pypi: https://files.pythonhosted.org/packages/06/c2/05b8c890097c61a7f4406b35396b997a635200ded0339eda83dfbe526c5f/coverage-7.14.3-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl name: coverage - version: 7.6.10 - sha256: 675cefc4c06e3b4c876b85bfb7c59c5e2218167bbd4da5075cbe3b5790a28988 + version: 7.14.3 + sha256: 621e13c6108234d7960aaf5762ab5c3c00f33c30c15af06dcbff0c73bf112727 requires_dist: - tomli ; python_full_version <= '3.11' and extra == 'toml' - requires_python: '>=3.9' + requires_python: '>=3.10' +- pypi: https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl + name: pytest + version: 9.1.1 + sha256: 37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c + requires_dist: + - colorama>=0.4 ; sys_platform == 'win32' + - exceptiongroup>=1 ; python_full_version < '3.11' + - iniconfig>=1.0.1 + - packaging>=22 + - pluggy>=1.5,<2 + - pygments>=2.7.2 + - tomli>=1 ; python_full_version < '3.11' + - argcomplete ; extra == 'dev' + - attrs>=19.2 ; extra == 'dev' + - hypothesis>=3.56 ; extra == 'dev' + - mock ; extra == 'dev' + - requests ; extra == 'dev' + - setuptools ; extra == 'dev' + - xmlschema ; extra == 'dev' + requires_python: '>=3.10' +- pypi: https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl + name: sortedcontainers + version: 2.4.0 + sha256: a163dcaede0f1c021485e957a39245190e74249897e2ae4b2aa38595db237ee0 +- pypi: https://files.pythonhosted.org/packages/39/7f/117dd2ec65e4140576f8ef991d88220f9b806769f7a8c20e0550c0f924e2/coverage-7.14.3-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl + name: coverage + version: 7.14.3 + sha256: fbb8c3a98e779013786ae01d229662aeacbc77100efbd3f2f245219ace5af700 + requires_dist: + - tomli ; python_full_version <= '3.11' and extra == 'toml' + requires_python: '>=3.10' - pypi: https://files.pythonhosted.org/packages/6e/c2/61d3e0f47e2b74ef40a68b9e6ad5984f6241a942f7cd3bbfbdbd03861ea9/tomli-2.2.1-py3-none-any.whl name: tomli version: 2.2.1 sha256: cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc requires_python: '>=3.8' -- pypi: https://files.pythonhosted.org/packages/75/e4/2c27590dfc9992f73aabbeb9241ae20220bd9452df27483b6e56d3975cc5/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - name: pyyaml - version: 6.0.2 - sha256: 3ad2a3decf9aaba3d29c8f537ac4b243e36bef957511b4766cb0057d32b0be85 - requires_python: '>=3.8' +- pypi: https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl + name: pygments + version: 2.21.0 + sha256: 2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9 + requires_dist: + - colorama>=0.4.6 ; extra == 'windows-terminal' + requires_python: '>=3.9' +- pypi: https://files.pythonhosted.org/packages/82/50/dfce42eff2cecabcd5a9bbad5489449c87db3415f408d23ffee417ce01f6/coverage-7.14.3-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl + name: coverage + version: 7.14.3 + sha256: 98a0859b0e98e43e1178a9402e19c8127766b14f7109a374d976e5a62c0e5c73 + requires_dist: + - tomli ; python_full_version <= '3.11' and extra == 'toml' + requires_python: '>=3.10' - pypi: https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl name: pluggy version: 1.5.0 @@ -791,135 +763,42 @@ packages: version: '24.2' sha256: 09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759 requires_python: '>=3.8' -- pypi: https://files.pythonhosted.org/packages/89/ec/00d68c4ddfedfe64159999e5f8a98fb8442729a63e2077eb9dcd89623d27/filelock-3.17.0-py3-none-any.whl - name: filelock - version: 3.17.0 - sha256: 533dc2f7ba78dc2f0f531fc6c4940addf7b70a481e269a5a3b93be94ffbe8338 - requires_dist: - - furo>=2024.8.6 ; extra == 'docs' - - sphinx-autodoc-typehints>=3 ; extra == 'docs' - - sphinx>=8.1.3 ; extra == 'docs' - - covdefaults>=2.3 ; extra == 'testing' - - coverage>=7.6.10 ; extra == 'testing' - - diff-cover>=9.2.1 ; extra == 'testing' - - pytest-asyncio>=0.25.2 ; extra == 'testing' - - pytest-cov>=6 ; extra == 'testing' - - pytest-mock>=3.14 ; extra == 'testing' - - pytest-timeout>=2.3.1 ; extra == 'testing' - - pytest>=8.3.4 ; extra == 'testing' - - virtualenv>=20.28.1 ; extra == 'testing' - - typing-extensions>=4.12.2 ; python_full_version < '3.11' and extra == 'typing' - requires_python: '>=3.9' -- pypi: https://files.pythonhosted.org/packages/91/a1/cf2472db20f7ce4a6be1253a81cfdf85ad9c7885ffbed7047fb72c24cf87/distlib-0.3.9-py2.py3-none-any.whl - name: distlib - version: 0.3.9 - sha256: 47f8c22fd27c27e25a65601af709b38e4f0a45ea4fc2e710f65755fa8caaaf87 -- pypi: https://files.pythonhosted.org/packages/93/fa/849483d56773ae29740ae70043ad88e068f98a6401aa819b5d6bee604683/virtualenv-20.29.2-py3-none-any.whl - name: virtualenv - version: 20.29.2 - sha256: febddfc3d1ea571bdb1dc0f98d7b45d24def7428214d4fb73cc486c9568cce6a - requires_dist: - - distlib>=0.3.7,<1 - - filelock>=3.12.2,<4 - - importlib-metadata>=6.6 ; python_full_version < '3.8' - - platformdirs>=3.9.1,<5 - - furo>=2023.7.26 ; extra == 'docs' - - proselint>=0.13 ; extra == 'docs' - - sphinx>=7.1.2,!=7.3 ; extra == 'docs' - - sphinx-argparse>=0.4 ; extra == 'docs' - - sphinxcontrib-towncrier>=0.2.1a0 ; extra == 'docs' - - towncrier>=23.6 ; extra == 'docs' - - covdefaults>=2.3 ; extra == 'test' - - coverage-enable-subprocess>=1 ; extra == 'test' - - coverage>=7.2.7 ; extra == 'test' - - flaky>=3.7 ; extra == 'test' - - packaging>=23.1 ; extra == 'test' - - pytest-env>=0.8.2 ; extra == 'test' - - pytest-freezer>=0.4.8 ; (python_full_version >= '3.13' and platform_python_implementation == 'CPython' and sys_platform == 'win32' and extra == 'test') or (platform_python_implementation == 'PyPy' and extra == 'test') - - pytest-mock>=3.11.1 ; extra == 'test' - - pytest-randomly>=3.12 ; extra == 'test' - - pytest-timeout>=2.1 ; extra == 'test' - - pytest>=7.4 ; extra == 'test' - - setuptools>=68 ; extra == 'test' - - time-machine>=2.10 ; platform_python_implementation == 'CPython' and extra == 'test' - requires_python: '>=3.8' -- pypi: https://files.pythonhosted.org/packages/9a/0b/7797d4193f5adb4b837207ed87fecf5fc38f7cc612b369a8e8e12d9fa114/coverage-7.6.10-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl - name: coverage - version: 7.6.10 - sha256: 26bcf5c4df41cad1b19c84af71c22cbc9ea9a547fc973f1f2cc9a290002c8b3c +- pypi: https://files.pythonhosted.org/packages/9d/7a/d968e294073affff457b041c2be9868a40c1c71f4a35fcc1e45e5493067b/pytest_cov-7.1.0-py3-none-any.whl + name: pytest-cov + version: 7.1.0 + sha256: a0461110b7865f9a271aa1b51e516c9a95de9d696734a2f71e3e78f46e1d4678 requires_dist: - - tomli ; python_full_version <= '3.11' and extra == 'toml' + - coverage[toml]>=7.10.6 + - pluggy>=1.2 + - pytest>=7 + - process-tests ; extra == 'testing' + - pytest-xdist ; extra == 'testing' + - virtualenv ; extra == 'testing' requires_python: '>=3.9' -- pypi: https://files.pythonhosted.org/packages/b9/2b/614b4752f2e127db5cc206abc23a8c19678e92b23c3db30fc86ab731d3bd/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - name: pyyaml - version: 6.0.2 - sha256: 80bab7bfc629882493af4aa31a4cfa43a4c57c83813253626916b8c7ada83476 +- pypi: https://files.pythonhosted.org/packages/a5/26/c250c2c569adc53a8591716641388397bcb2a442e4a30b952ae81b50c0e0/ty-0.0.65-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + name: ty + version: 0.0.65 + sha256: 5a75bd0c245c38802a8f488378e74f92feb7dd33db7d63fbdd6fdf82791ba730 requires_python: '>=3.8' -- pypi: https://files.pythonhosted.org/packages/c5/55/51844dd50c4fc7a33b653bfaba4c2456f06955289ca770a5dbd5fd267374/cfgv-3.4.0-py2.py3-none-any.whl - name: cfgv - version: 3.4.0 - sha256: b7265b1f29fd3316bfcd2b330d63d024f2bfd8bcb8b0272f8e19a504856c48f9 +- pypi: https://files.pythonhosted.org/packages/bb/1c/c6a7800406f987559fc8e7c2cfd257a5a68096e806e953f143b488e00e4f/prek-0.4.14-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + name: prek + version: 0.4.14 + sha256: 34169cb1c8dfbe4b9cb7af164f5c1c3dff68929c61ca1e1de28d378b32720836 requires_python: '>=3.8' -- pypi: https://files.pythonhosted.org/packages/d2/1d/1b658dbd2b9fa9c4c9f32accbfc0205d532c8c6194dc0f2a4c0428e7128a/nodeenv-1.9.1-py2.py3-none-any.whl - name: nodeenv - version: 1.9.1 - sha256: ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9 - requires_python: '>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*' -- pypi: https://files.pythonhosted.org/packages/dc/03/0334a79b26ecf59958f2fe9dd1f5ab3e2f88db876f5071933de39af09647/coverage-7.6.10-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl +- pypi: https://files.pythonhosted.org/packages/c3/d8/59894cf630d2d86882457a2a6a0a1533410c5c805bfbac6f6eb4b5aef69d/ruff-0.17.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + name: ruff + version: 0.17.2 + sha256: c60f93fec7142dba5b8f487f94bf2f6231dae24dc11e4c48648347c8b0720004 + requires_python: '>=3.7' +- pypi: https://files.pythonhosted.org/packages/da/bb/e9ecea1307c6a549c223842cccbd5d55193cc27b82f26338782d4355047c/coverage-7.14.3-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl name: coverage - version: 7.6.10 - sha256: e67926f51821b8e9deb6426ff3164870976fe414d033ad90ea75e7ed0c2e5022 + version: 7.14.3 + sha256: a64caee2193563601dbaaa55fe2dcf597debef04a2f8f1fa8a07aa4bb7ac7a1e requires_dist: - tomli ; python_full_version <= '3.11' and extra == 'toml' - requires_python: '>=3.9' + requires_python: '>=3.10' - pypi: https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl name: iniconfig version: 2.0.0 sha256: b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374 requires_python: '>=3.7' -- pypi: https://files.pythonhosted.org/packages/fc/30/d4986a882011f9df997a55e6becd864812ccfcd821d64aac8570ee39f719/attrs-25.1.0-py3-none-any.whl - name: attrs - version: 25.1.0 - sha256: c75a69e28a550a7e93789579c22aa26b0f5b83b75dc4e08fe092980051e1090a - requires_dist: - - cloudpickle ; platform_python_implementation == 'CPython' and extra == 'benchmark' - - hypothesis ; extra == 'benchmark' - - mypy>=1.11.1 ; python_full_version >= '3.10' and platform_python_implementation == 'CPython' and extra == 'benchmark' - - pympler ; extra == 'benchmark' - - pytest-codspeed ; extra == 'benchmark' - - pytest-mypy-plugins ; python_full_version >= '3.10' and platform_python_implementation == 'CPython' and extra == 'benchmark' - - pytest-xdist[psutil] ; extra == 'benchmark' - - pytest>=4.3.0 ; extra == 'benchmark' - - cloudpickle ; platform_python_implementation == 'CPython' and extra == 'cov' - - coverage[toml]>=5.3 ; extra == 'cov' - - hypothesis ; extra == 'cov' - - mypy>=1.11.1 ; python_full_version >= '3.10' and platform_python_implementation == 'CPython' and extra == 'cov' - - pympler ; extra == 'cov' - - pytest-mypy-plugins ; python_full_version >= '3.10' and platform_python_implementation == 'CPython' and extra == 'cov' - - pytest-xdist[psutil] ; extra == 'cov' - - pytest>=4.3.0 ; extra == 'cov' - - cloudpickle ; platform_python_implementation == 'CPython' and extra == 'dev' - - hypothesis ; extra == 'dev' - - mypy>=1.11.1 ; python_full_version >= '3.10' and platform_python_implementation == 'CPython' and extra == 'dev' - - pre-commit-uv ; extra == 'dev' - - pympler ; extra == 'dev' - - pytest-mypy-plugins ; python_full_version >= '3.10' and platform_python_implementation == 'CPython' and extra == 'dev' - - pytest-xdist[psutil] ; extra == 'dev' - - pytest>=4.3.0 ; extra == 'dev' - - cogapp ; extra == 'docs' - - furo ; extra == 'docs' - - myst-parser ; extra == 'docs' - - sphinx ; extra == 'docs' - - sphinx-notfound-page ; extra == 'docs' - - sphinxcontrib-towncrier ; extra == 'docs' - - towncrier<24.7 ; extra == 'docs' - - cloudpickle ; platform_python_implementation == 'CPython' and extra == 'tests' - - hypothesis ; extra == 'tests' - - mypy>=1.11.1 ; python_full_version >= '3.10' and platform_python_implementation == 'CPython' and extra == 'tests' - - pympler ; extra == 'tests' - - pytest-mypy-plugins ; python_full_version >= '3.10' and platform_python_implementation == 'CPython' and extra == 'tests' - - pytest-xdist[psutil] ; extra == 'tests' - - pytest>=4.3.0 ; extra == 'tests' - - mypy>=1.11.1 ; python_full_version >= '3.10' and platform_python_implementation == 'CPython' and extra == 'tests-mypy' - - pytest-mypy-plugins ; python_full_version >= '3.10' and platform_python_implementation == 'CPython' and extra == 'tests-mypy' - requires_python: '>=3.8' diff --git a/pyproject.toml b/pyproject.toml index e76cb6c..c82420b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,11 +13,15 @@ Source = "https://github.com/blooop/stats_explorer" Home = "https://github.com/blooop/stats_explorer" [tool.pixi.workspace] -channels = ["conda-forge"] +channels = ["conda-forge", "https://prefix.dev/blooop"] platforms = ["linux-64"] [tool.pixi.dependencies] python = ">=3.10" +shellcheck = ">=0.10.0,<0.11" +devpod = ">=0.8.0,<0.9" +gh = ">=2.83.0,<3.0" +ralph-orchestrator = ">=2.6.0,<2.7.0" [tool.pixi.feature.py310.dependencies] python = "3.10.*" @@ -28,18 +32,19 @@ python = "3.12.*" [tool.pixi.feature.py313.dependencies] python = "3.13.*" - [tool.pixi.pypi-dependencies] stats_explorer = { path = ".", editable = true } [project.optional-dependencies] test = [ - "pytest-cov>=4.1,<=6.0.0", - "pytest>=7.4,<=8.3.4", - "hypothesis>=6.104.2,<=6.126.0", - "ruff>=0.5.0,<=0.9.7", - "coverage>=7.5.4,<=7.6.12", - "pre-commit<=4.1.0", + "pytest-cov<=7.1.0,>=7.1.0", + "pytest<=9.1.1,>=9.1.1", + "hypothesis<=6.155.7,>=6.155.7", + # The one ruff pin: CI, `pixi run lint` and the prek hooks all run this ruff. + "ruff==0.17.2", + "coverage<=7.14.3,>=7.14.3", + "prek>=0.4.6,<0.5.0", + "ty<=0.0.65,>=0.0.65", ] [build-system] @@ -57,15 +62,23 @@ py311 = ["py311", "test"] py312 = ["py312", "test"] py313 = ["py313", "test"] - [tool.pixi.tasks] -pre-commit = "pre-commit run -a" -pre-commit-update = "pre-commit autoupdate" +dev-add-docker = "devpod provider list | grep -qw docker || devpod provider add docker" +dev = { cmd = "devpod up . --ide none && ssh statsexplorer.devpod", depends-on = ["dev-add-docker"] } +dev-vs = { cmd = "devpod up . --ide vscode", depends-on = ["dev-add-docker"] } +dev-restart = { cmd = "devpod up . --recreate --ide none && ssh statsexplorer.devpod", depends-on = ["dev-add-docker"] } +dev-restart-vs = { cmd = "devpod up . --recreate --ide vscode", depends-on = ["dev-add-docker"] } +prek = "prek run -a" +prek-install = "prek install" +prek-update = "prek autoupdate" format = "ruff format ." check-clean-workspace = "git diff --exit-code" +format-check = "ruff format --check ." ruff-lint = "ruff check . --fix" -lint = { depends-on = ["ruff-lint"] } -style = { depends-on = ["format", "lint"] } +ruff-check = "ruff check ." +ty = "ty check --respect-ignore-files ." +lint = { depends-on = ["ruff-check", "format-check", "ty"] } +style = { depends-on = ["format", "ruff-lint", "lint"] } commit-format = "git commit -a -m'autoformat code' || true" test = "pytest" coverage = "coverage run -m pytest && coverage xml -o coverage.xml" @@ -73,18 +86,19 @@ coverage-report = "coverage report -m" update-lock = "pixi update && git commit -a -m'update pixi.lock' || true" push = "git push" update-lock-push = { depends-on = ["update-lock", "push"] } -fix = { depends-on = ["update-lock", "format", "ruff-lint", "pre-commit"] } +fix = { depends-on = ["update-lock", "format", "ruff-lint", "prek"] } fix-commit-push = { depends-on = ["fix", "commit-format", "update-lock-push"] } ci-no-cover = { depends-on = ["style", "test"] } ci = { depends-on = [ - "format", - "ruff-lint", + "ruff-check", + "format-check", + "ty", "coverage", "coverage-report", ] } 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.ourslock.driver true" +ralph = "ralph" update-from-template-repo = "./scripts/update_from_template.sh" [tool.coverage.run] diff --git a/ralph.yml b/ralph.yml new file mode 100644 index 0000000..3b8ab05 --- /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/rockerc.yaml b/rockerc.yaml index 9e97b5f..6c0a6a3 100644 --- a/rockerc.yaml +++ b/rockerc.yaml @@ -5,13 +5,13 @@ # - image: Specifies the base image to pass to rocker # - args: Lists additional features or tools to be added to the docker image -image: ubuntu:22.04 +image: ubuntu:24.04 args: - - nvidia + - jquery - x11 - user - pull - deps - git - - lazygit - pixi + - cwd diff --git a/scripts/launch_vscode.sh b/scripts/launch_vscode.sh index fa6b029..18e375e 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 5379791..3847d53 100755 --- a/scripts/rename_project.sh +++ b/scripts/rename_project.sh @@ -1,22 +1,51 @@ #!/bin/bash +set -eo pipefail -mv stats_explorer "$1" -mv stats_explorer.deps.yaml "$1".deps.yaml +# Escape characters special in sed replacement strings (\, &, /) +escape_sed() { printf '%s\n' "$1" | sed 's/[\\&/]/\\&/g'; } -# 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' \) -print0 | xargs -0 sed -i "s/stats_explorer/$1/g" +mv python_template "$1" + +ESCAPED_1=$(escape_sed "$1") + +# devpod strips separators out of the repo name to build its workspace name, so the tree +# also carries `pythontemplate` (ssh hosts, /workspaces/ paths) which the sed below would +# never match. Substitute the separator-stripped new name for it. +STRIPPED_1="${1//[_-]/}" +ESCAPED_1_STRIPPED=$(escape_sed "$STRIPPED_1") + +# change project name in all files (exclude main devcontainer.json to protect template image URL) +# sed re-scans each replacement with the later expressions, so `pythontemplate` goes first: a +# stripped name can never contain an underscore, so it can never manufacture a fresh +# `python_template`. The other order breaks on a new name that itself contains +# `pythontemplate` -- `pythontemplate_fork` would come out as `pythontemplatefork_fork`. +# The first and last expressions mask the prebuilt image reference: it is the one +# `python_template` in the tree that names a real published package rather than this project, +# so renaming it yields a ghcr.io URL that 404s. It appears in the root README and in +# .devcontainer/claude-code/{README,TROUBLESHOOTING}.md, which must otherwise be renamed +# normally, so the string is protected instead of the files. +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 -e 's|blooop/python_template/devcontainer|@@IMGREF@@|g' -e "s/pythontemplate/$ESCAPED_1_STRIPPED/g" -e "s/python_template/$ESCAPED_1/g" -e 's|@@IMGREF@@|blooop/python_template/devcontainer|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 833c261..3ecb0fd 100755 --- a/scripts/setup_host.sh +++ b/scripts/setup_host.sh @@ -1,59 +1,117 @@ #! /bin/bash +set -euo pipefail -#Sets up docker, nvidia docker git-lfs and rocker which are used to clone and setup docker containers +# Sets up docker, the NVIDIA Container Toolkit, git-lfs, pixi and uv, which are used +# to clone and set up docker containers. +# +# Tested on Ubuntu 22.04 / 24.04 / 26.04. -#COPIED FROM OFFICIAL DOCKER INSTALL INSTRUCTIONS +if [ "${EUID}" -eq 0 ]; then + echo "Do not run this script as root / with sudo; it calls sudo itself where needed." >&2 + exit 1 +fi + +# Keep a sudo timestamp alive so the script does not stall halfway through. +sudo -v + +# --------------------------------------------------------------------------- +# DOCKER +# Adapted from the official install instructions: # 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 +# Remove distro/podman packages that conflict with docker-ce. +# `apt-get remove` on a package that is not installed is a no-op, so this is safe. +sudo apt-get remove -y docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc # Add Docker's official GPG key: -sudo apt update -sudo apt install -y ca-certificates curl +sudo apt-get update +sudo apt-get install -y ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: +# shellcheck disable=SC1091 +UBUNTU_CODENAME="$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")" + +# Docker does not always publish a suite on release day. If this release is not +# there yet, fall back to the most recent suite that is. +if ! curl -fsSL -o /dev/null "https://download.docker.com/linux/ubuntu/dists/${UBUNTU_CODENAME}/Release"; then + echo "WARNING: Docker has no apt suite for '${UBUNTU_CODENAME}' yet; falling back to 'noble'." >&2 + UBUNTU_CODENAME=noble +fi + 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" | \ + ${UBUNTU_CODENAME} stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null -sudo apt update +sudo apt-get update # Install docker -sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -#END OFFICIAL DOCKER INSTALL - - - -#INSTALL NVIDIA DOCKER -#https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html -curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \ - && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ +sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin +# END OFFICIAL DOCKER INSTALL + +# Allow the current user to talk to the docker socket without sudo. +# docker-ce already creates the group, so only create it if it is somehow missing. +getent group docker > /dev/null || sudo groupadd docker +sudo usermod -aG docker "$USER" + +# --------------------------------------------------------------------------- +# NVIDIA CONTAINER TOOLKIT +# https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html +# Note: the old `nvidia-docker2` package is deprecated and is NOT needed. +# --------------------------------------------------------------------------- + +if command -v nvidia-smi > /dev/null && nvidia-smi -L > /dev/null 2>&1; then + curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | \ + sudo gpg --yes --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg + curl -fsSL https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ - sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list -sudo apt update -sudo apt install -y nvidia-docker2 nvidia-container-toolkit -sudo nvidia-ctk runtime configure --runtime=docker -sudo systemctl restart docker - -sudo apt install -y git-lfs - -#Install rocker and rocker extensions which are used to launch the devcontainer + sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list > /dev/null + sudo apt-get update + sudo apt-get install -y nvidia-container-toolkit + sudo nvidia-ctk runtime configure --runtime=docker + sudo systemctl restart docker +else + echo "No working NVIDIA driver detected (nvidia-smi failed); skipping NVIDIA Container Toolkit." + echo "Install a driver first, e.g. 'sudo ubuntu-drivers install', reboot, then re-run this script." +fi + +sudo apt-get install -y git-lfs + +# Install rocker and rocker extensions which are used to launch the devcontainer # pip install rocker off-your-rocker git+https://github.com/blooop/deps_rocker -echo "testing docker install" - -docker run hello-world +# --------------------------------------------------------------------------- +# SMOKE TESTS +# The `docker` group membership added above does not apply to the current shell +# until the user logs out and back in, so run the tests with sudo. (Ubuntu 26.04 +# removed `sg` and `newgrp`, so those are not an option.) +# --------------------------------------------------------------------------- -echo "you may need to restart your machine" - -#INSTALL PIXI +echo "testing docker install" +sudo docker run --rm hello-world + +if command -v nvidia-ctk > /dev/null; then + echo "testing nvidia docker install" + # Plain ubuntu image matching the host release: the toolkit injects nvidia-smi + # and the driver libraries from the host, so this avoids pinning a CUDA version. + # shellcheck disable=SC1091 + TEST_IMAGE="ubuntu:$(. /etc/os-release && echo "$VERSION_ID")" + sudo docker run --rm --gpus all "${TEST_IMAGE}" nvidia-smi || \ + echo "WARNING: GPU container test failed." +fi + +# INSTALL PIXI curl -fsSL https://pixi.sh/install.sh | bash -echo 'eval "$(pixi completion --shell bash)"' >> ~/.bashrc +# shellcheck disable=SC2016 +grep -qF 'pixi completion --shell bash' ~/.bashrc || \ + 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 -newgrp docker || true +echo +echo "Done. Log out and back in (or reboot) so your 'docker' group membership applies" +echo "to every new shell, and so pixi/uv are on your PATH." diff --git a/scripts/update_from_template.sh b/scripts/update_from_template.sh index ebcf97d..8484267 100755 --- a/scripts/update_from_template.sh +++ b/scripts/update_from_template.sh @@ -1,12 +1,23 @@ #! /bin/bash +set -eo pipefail -git config --global pull.rebase false -git remote add template https://github.com/blooop/python_template.git +TEMPLATE_URL="${TEMPLATE_URL:-https://github.com/blooop/python_template.git}" +BRANCH="${BRANCH:-feature/update_from_template}" + +git config pull.rebase false +git remote remove template 2>/dev/null || true +git remote add template "$TEMPLATE_URL" git fetch --all git checkout main && git pull origin main -git checkout -B feature/update_from_template; git pull +git checkout -B "$BRANCH" git merge template/main --allow-unrelated-histories -m 'feat: pull changes from remote template' -git checkout --ours pixi.lock; git add pixi.lock +git checkout --ours pixi.lock 2>/dev/null || true + +# regenerate lockfile to match merged pyproject.toml +pixi update +git add pixi.lock +git diff --cached --quiet || git commit -m 'chore: update pixi.lock after template merge' + git remote remove template -git push --set-upstream origin feature/update_from_template +git push --set-upstream origin "$BRANCH" git checkout main diff --git a/stats_explorer.deps.yaml b/stats_explorer.deps.yaml deleted file mode 100644 index 63e6e6b..0000000 --- a/stats_explorer.deps.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apt_tools: - - git - - git-lfs - - python3-pip - - jq #for auto installing extensions in container - -pip_language-toolchain: - - uv #use uv instead of pip - - pip #update to the latest pip - - pre-commit diff --git a/test/test_basic.py b/test/test_basic.py index e27f0e1..5167612 100644 --- a/test/test_basic.py +++ b/test/test_basic.py @@ -1,4 +1,5 @@ from unittest import TestCase + from stats_explorer.basic_class import BasicClass diff --git a/test/test_devcontainer.py b/test/test_devcontainer.py new file mode 100644 index 0000000..dff6fce --- /dev/null +++ b/test/test_devcontainer.py @@ -0,0 +1,49 @@ +import re +import subprocess +from pathlib import Path + +REPO = Path(__file__).resolve().parent.parent +DEVCONTAINER = REPO / ".devcontainer" + + +def host_bind_sources() -> list[str]: + config = (DEVCONTAINER / "devcontainer.json").read_text(encoding="utf-8") + live = "\n".join(line for line in config.splitlines() if not line.lstrip().startswith("//")) + sources = [] + for mount in re.findall(r'"([^"]*\btype=bind\b[^"]*)"', live): + fields = dict(field.split("=", 1) for field in mount.split(",") if "=" in field) + home, _, rest = fields.get("source", "").partition("${localEnv:HOME}/") + if not home and rest: + sources.append(rest) + return sources + + +def test_init_host_creates_every_home_bind_source(tmp_path): + """docker refuses to create the container when a bind source is missing.""" + sources = host_bind_sources() + assert sources, "found no ${localEnv:HOME} bind mounts in devcontainer.json" + + subprocess.run( + [str(DEVCONTAINER / "claude-code" / "init-host.sh")], + env={"HOME": str(tmp_path), "PATH": "/usr/bin:/bin"}, + check=True, + ) + + missing = [s for s in sources if not (tmp_path / s).is_dir()] + assert not missing, f"init-host.sh did not create: {missing}" + + +def test_init_host_keeps_existing_dirs(tmp_path): + """A second run must not fail or touch what is already there.""" + gh = tmp_path / ".config" / "gh" + gh.mkdir(parents=True) + (gh / "hosts.yml").write_text("token", encoding="utf-8") + + for _ in range(2): + subprocess.run( + [str(DEVCONTAINER / "claude-code" / "init-host.sh")], + env={"HOME": str(tmp_path), "PATH": "/usr/bin:/bin"}, + check=True, + ) + + assert (gh / "hosts.yml").read_text(encoding="utf-8") == "token"