← Back to Pull requests

chore: set up the repo, dev tooling and release-please #1

Closed
unknown closed this pull request without merging on Nov 17, 2026 15:29 UTC
View on GitHub
unknown unknown commented on Nov 17, 2026 15:27 UTC
Author

Reviewer:

---

Main Changes

This sets up the repo for pydelity, a Python 3.13 library and CLI that will turn PDFs into structured JSON. There is no pipeline code yet; that comes in the next PR. The name is already reserved on PyPI with a placeholder 0.0.1 release, published by hand, with no dependencies.

Package

  • Empty src/pydelity package (py.typed included) with a setuptools build, MIT license and Python >=3.13.

  • A smoke test checks that pydelity imports from its installed copy, not from src/.
  • Dev environment and commands

  • uv with a locked dev dependency group; dev tools are pinned to exact versions.

  • just recipes: install, lint (lint-markdown, lint-python, lint-workflows), test and clean.

  • prek git hooks: generic file checks, Prettier and markdownlint for Markdown, detect-secrets, Ruff, ty, interrogate and zizmor.
  • GitHub

  • CI (Lint and test): runs every hook, every lint recipe and the tests, and fails if a lint recipe changes a file.

  • TruffleHog secret scan on pull requests to main.

  • Dependabot: one grouped pull request a month each for uv, the pre-commit hook revs and GitHub Actions, with a 7-day wait after each new release.

  • release-please: keeps a release pull request with the next version and CHANGELOG.md entry, worked out from Conventional Commit messages. Merging it bumps pyproject.toml and uv.lock, tags vX.Y.Z and creates the GitHub release. It does not publish to PyPI yet. Its token is a secret of the release-please environment, which only main can use.

  • Issue templates, a pull request template and CODEOWNERS.
  • Docs

  • README: status, prerequisites, commands, dependency workflow, tests, git hooks and releases.

  • artifacts/design_brief.md and artifacts/next_cycle_inputs.md: the request and the decisions carried into the pipeline work.
  • Notes for review

  • This is the first time CI, TruffleHog, Dependabot and release-please run on GitHub.

  • After merging:

  • - Switch the source of the Lint and test and TruffleHog secret scan required checks to GitHub Actions.
    - Check that the Release Please run on main succeeds. This chore: commit should not open a release pull request.
  • The README's docstring-coverage badge shows as a broken image until this merges, because it points at main.

  • The work was planned and reviewed with the STANDARDS workflow, which is uninstalled before merging, so no STANDARDS files reach main.
  • Try it

    just install, then just lint and just test (needs uv 0.8.1+, just and bash).

    Diff: 319 lines (+239 / -80) across 3 files Reviewer: copilot-pull-request-reviewer[bot] Review duration: 1m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.40) × (1 − Review Confidence (0.32)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 319 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 21% · Reviewer familiarity: 35%
    32%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.345
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 32.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 40.4% (MEDIUM) · Higher = larger blast radius
    40.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 32.2% · Lower = rushed or shallow review
    32.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 27.4% · Safe to merge
    27.4%