research-repo-tools
Shared setup, checks, performance evidence, and release tooling for research software repositories.
Contents
- Why use research-repo-tools?
- Quick start
- Common workflows
- Capability index
- Consumer examples
- Release availability and CHANGELOG.md
- Contributing, citation, and license
Why use research-repo-tools?
Teams maintaining scientific software can pin one set of Just recipes and Python APIs across repositories. Contributors use the same commands to reproduce a tool environment, check notebooks, or trace a release report back to its samples. Your project declares its scientific workloads, native builds, correctness gates, and publication approvals.
Quick start
Install with uv
Work in the root of the consumer's Git repository. Install Git and
uv (0.12.10 or newer).
Recipes need POSIX sh on PATH. On Windows, add Git for Windows' bin directory,
typically C:\Program Files\Git\bin. Setup installs Just.
1. Declare the package and interpreter. If the repo has no pyproject.toml,
create one with uv init --bare --python 3.15. In an existing manifest, keep
the project's name and dependencies. Set project.requires-python to
require Python 3.15 or later, preserving any stricter bounds and exclusions.
Set .python-version to an interpreter version that satisfies that range.
Set tool.uv.required-version to == followed by the version number reported
by uv --version. Then add the published package to the tooling group.
uv add --group tooling --bounds exact --no-sync research-repo-tools
Include {include-group = "tooling"} in the existing dev group or create that
group. Setup installs the project's declared tools before syncing the
development environment. See toolchain declarations.
2. Lock the dependencies and export both templates. For a repo with an existing
Justfile or helper, omit the corresponding --output argument and merge the
printed template into the existing file. Run both exports from the consumer root.
uv lock
uv run --locked --only-group tooling research-repo-tools templates justfile --output justfile
uv run --locked --only-group tooling research-repo-tools templates python-bootstrap.py --output python-bootstrap.py
3. Run setup. Add any Rust or optional tool declarations first.
uv run --locked --managed-python --only-group tooling research-repo-tools setup
Setup verifies the declarations, installs a pinned user-level Just and declared
tools, configures PATH and synchronizes the locked development environment.
Open a new terminal if PATH changed. Run just help and the first workflow
from the consumer root. Keep the manifest, uv.lock, .python-version, Justfile
and python-bootstrap.py together in version control. See installation and recovery
if setup reports a missing prerequisite.
First workflow
List the installed recipes, then check the Markdown files in your repository.
just help
just files check-lines --limit 160 --include '*.md' --exclude CHANGELOG.md
If a line exceeds 160 characters, the checker reports its path, line number and measured length and exits with status 1. It runs without optional dependencies. You can configure the selection and limit in your project.
Common workflows
After setup, run these commands from the consumer root. Each recipe uses the
locked environment. Run just help to see the recipes in your project's Justfile.
| Command | Use |
|---|---|
just actions-check |
Check that configured GitHub Actions use consistent pins. Wire the offline check. |
just changelog-preview --tag v1.2.3 --date YYYY-MM-DD |
Print the proposed root changelog for a tag and date. |
just check |
Run the checks configured by your project. |
just notebook-inspect notebooks/analysis.ipynb --no-preview |
Inspect notebook structure without executing cells or printing source. |
just review-uncommitted |
Request an opt-in CodeRabbit review of local changes. Setup, results and paid consent. |
just tools-check |
Verify the installed tools against their declared versions. |
just update |
Upgrade declared tools and dependencies, then audit the updated locks. |
Pin Actions from the same release
The v0.3.2 policy checks occurrences of each Action identity independently.
To check several subpaths against one reviewed release, use a tooling pin that
supports [[consistency.releases]]. See release availability.
Add the exact Action identities to .github/action-updates.toml and replace
the example tag and commit with your reviewed values.
[actions]
"owner/repo/init" = "v1.2.3"
"owner/repo/analyze" = "v1.2.3"
[consistency]
actions = ["owner/repo/init", "owner/repo/analyze"]
[[consistency.releases]]
actions = ["owner/repo/init", "owner/repo/analyze"]
tag = "v1.2.3"
commit = "0123456789abcdef0123456789abcdef01234567"
Run just actions-check to check the pins offline. On update, the updater
resolves the upstream tag and compares its peeled commit before writing.
Capability index
| Task | Guides |
|---|---|
| Set up or update a repository | Installation and cleanup · Dependency updates and Actions pins · Migration |
| Check code and workflows | Python, Cargo, security scans and review · GitHub settings · Dependabot approvals |
| Work with notebooks and papers | Run notebooks · Build reproducible papers |
| Measure performance | Time a command · Record benchmark evidence · Reuse an acquisition · Publish reports and figures |
| Prepare a release | Generate changelogs · Update metadata · Prepare a draft |
| Verify and publish a release | Consumer release guide · Verify evidence · Reuse CI checks · Recover an unfinished release |
See the command reference for the full recipe catalog and supported interfaces for configuration, CLI behavior and Python APIs.
Consumer examples
Notebooks
Declare the notebooks extra at the same version as the tooling pin, add your
analysis dependencies and the Ruff/ty checkers, then refresh the lock.
Sync the kernel, check the source and execute the notebook.
just notebook-sync
just notebook-lint notebooks/analysis.ipynb
just notebook-execute notebooks/analysis.ipynb
The executed copy and JSON report appear under target/notebooks. A failed cell
returns a nonzero status and identifies the cell. Notebook setup and execution
Performance
For a release with a published predecessor, configure the measurement, archive
and report paths in tooling/performance-release.toml. Prepare the release
pair, measure it, then preview and publish the README section.
just performance-prepare tooling/performance-release.toml
just performance-release tooling/performance-release.toml
just performance-readme tooling/performance-release.toml --preview
just performance-readme tooling/performance-release.toml
If only the README step fails, fix the presentation and retry it using retained evidence. For a first stable release, record current timings. If published releases predate the workload, follow the benchmark series procedure. To revalidate the series after publication, pin v0.3.3 once available on PyPI. The series guide also covers reviewing a preparation PR with a large archived payload.
Releases
Print the release guide shipped with your pin and adapt it to your repository's CI workflow, registry and approval environment.
just templates RELEASING.md
With publication configured, just release-registry v1.2.3 --expect absent
checks the proposed version before publication. After publication, run
just release-verify v1.2.3. The consumer release guide
covers the intervening approval and publication steps.
Release availability
Check PyPI for published versions. Take the Justfile and bootstrap helper from the same release as your pin. For an existing repository, follow the migration guide and run your consumer checks. The changelog records release history.
For a development rehearsal, pin a reviewed commit. Before collecting
release evidence, switch to the exact published dependency, refresh the lock and
verify it with just release-dependencies. Dependency source verification
Contributing
See CONTRIBUTING.md for package development, tests and maintainer commands. Supported interfaces defines the consumer compatibility boundary. Report vulnerabilities through the security policy.
Citation
If you use research-repo-tools in your work, cite the software using CITATION.cff. Include the version used so others can identify the same release. The Zenodo concept DOI covers all versions; use the version-specific DOI from the corresponding Zenodo record when citing an exact release.
License
BSD-3-Clause. See LICENSE.
Metadata
Release files for research-repo-tools 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| research_repo_tools-0.3.3.tar.gz | 1.7 MB | With provenance | Details for research_repo_tools-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| research_repo_tools-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for research_repo_tools-0.3.3-py3-none-any.whl |
Total release size: 2.4 MB
Release files / research_repo_tools-0.3.3.tar.gz
| Download URL | research_repo_tools-0.3.3.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02629bdbe8a0d45109b101f47ee328f4b8b4ec66787d9a52ef80cd99d42faf75
|
|
BLAKE2b-256 checksum How to use checksums |
9ecd99ab8e4317416af1c4890ae55368da7c57689a1322c53d8082e408f65c46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / research_repo_tools-0.3.3-py3-none-any.whl
| Download URL | research_repo_tools-0.3.3-py3-none-any.whl |
|---|---|
| Size | 725.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff99c5f6151167fb90d292b31665f80957d26f496a8bf48a5be36a98d11682e0
|
|
BLAKE2b-256 checksum How to use checksums |
cd7250d91cf6075f65b462cddd911ad67abbbf34ef637db43fef84be2936b5b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for research-repo-tools 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for research_repo_tools-0.3.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.