pup-check: Professional Python Project: Repo Self Consistency Checker
Opinionated professional Python repository self-consistency checker
Purpose
Professional Python repositories contain many declarations that should agree with one another.
Examples include:
- project and package names
src/package structurepyproject.tomlmetadata- command-line entry points
- Python module paths
- dependency declarations
- Python version declarations
- repository-relative file paths
- workflow and tooling configuration
Small inconsistencies can remain unnoticed until a command, build, test, documentation workflow, or release fails.
pup-check performs deterministic checks for internal repository consistency
and reports problems that should be reviewed.
Check a Repository
# check the current repository
uvx pup-check
# check using the latest published version
uvx pup-check@latest
A successful check returns exit code 0.
A failed consistency check returns a nonzero exit code and reports the detected problem.
Checks
This release checks:
pyproject.tomlexistspyproject.tomlcan be read and identifies the project- a Python package can be detected when a
src/layout is present - modules referenced by
[project.scripts]entry points exist
Developer Command Reference
Show command reference
In a machine terminal
Open a machine terminal where you want the project:
git clone https://github.com/pup-pack/pup-check
cd pup-check
code .
In a VS Code terminal
uv self update
uv python pin 3.15
uv lock --upgrade
uv sync --upgrade
# if concurrent dev:
uv pip install -e ../pup-core
uv run pre-commit install
uv run pre-commit autoupdate
git add -A
uv run pre-commit run --all-files
# repeat if changes were made
uv run pre-commit run --all-files
# run locally to test
uv run pup-check
uv run pup-check --diff
uv run pup-check --write
uv run pup-check --write .gitattributes .github/.yamllint.yml .github/workflows/links.yml
# types, tests, docs
uv run python -m pyright
uv run python -m pytest
uv run python -m zensical build
# save progress
git add -A
git commit -m "update"
git push -u origin main
Documentation
Annotations
Citation
License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pup_check-0.1.2.tar.gz.
File metadata
- Download URL: pup_check-0.1.2.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c864c5c8112822b0333a534880de904cb7406b329702afd49155e9d5b4a01692
|
|
| MD5 |
a9283799a7a7ed2495517d2ad63cb17e
|
|
| BLAKE2b-256 |
2095b709ace2609e8a94fd990c6d5378a8262d7e6627cc68106e1bec8420056b
|
Provenance
The following attestation bundles were made for pup_check-0.1.2.tar.gz:
Publisher:
release-pypi.yml on pup-pack/pup-check
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pup_check-0.1.2.tar.gz -
Subject digest:
c864c5c8112822b0333a534880de904cb7406b329702afd49155e9d5b4a01692 - Sigstore transparency entry: 2408502498
- Sigstore integration time:
-
Permalink:
pup-pack/pup-check@c2f3e5fd81d2c54730cde9576cd81c156fbbed21 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/pup-pack
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@c2f3e5fd81d2c54730cde9576cd81c156fbbed21 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pup_check-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pup_check-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b11a3be53dc32576c7680be80f024ae4be6f3bd5563f7f5339f0f882e1e7bab
|
|
| MD5 |
27e4b6f2a947f6bead2128c2392f4f60
|
|
| BLAKE2b-256 |
caa8795b9e3e387acb67757a951aa98d19c904e56df45637df8dd6d606775deb
|
Provenance
The following attestation bundles were made for pup_check-0.1.2-py3-none-any.whl:
Publisher:
release-pypi.yml on pup-pack/pup-check
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pup_check-0.1.2-py3-none-any.whl -
Subject digest:
6b11a3be53dc32576c7680be80f024ae4be6f3bd5563f7f5339f0f882e1e7bab - Sigstore transparency entry: 2408503251
- Sigstore integration time:
-
Permalink:
pup-pack/pup-check@c2f3e5fd81d2c54730cde9576cd81c156fbbed21 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/pup-pack
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@c2f3e5fd81d2c54730cde9576cd81c156fbbed21 -
Trigger Event:
push
-
Statement type: