Deterministic pull-request sizing and reviewed repository policy
Actively maintained. Last release 2 days ago, commits in 15 of the last 26 weeks. A safe choice.
pip install repo-standardsrepo-standards
repo-standards checks repository and pull-request policy without executing code.
Run it
Sarj repositories should use the single Code Standards setup path:
uvx --no-config --isolated --python 3.15 --from code-standards code-standards setup
code-standards doctor
Use the current release without installing it:
uvx --from repo-standards repo-standards pull-request size . --base origin/main
For a persistent user installation:
uv tool install repo-standards
repo-standards pull-request size . --base origin/main
Automation should pin the package version or the GitHub Action's full commit SHA.
Safety model
- Repository contents come from one exact Git tree.
- Workflow YAML and API descriptions are parsed as inert data.
- Missing required evidence produces an inconclusive result rather than a false pass.
- Advisory commit-history analysis reports incomplete evidence without blocking local commits.
Development
uv sync --locked
uv run pytest
uv run ruff check .
uv run basedpyright
Build the same wheel and source distribution used by publishing:
uv build --no-sources
Releases are reconcilable. The protected workflow independently repairs a missing PyPI publication or GitHub Release from the same verified source revision.
GitHub Action
- uses: sarj-ai/repo-standards@7fe36ad4df02581cd1c4602cea98a1b153d2bf0e # v8.22.2