Skip to main content

pup-check: Professional Python Project: Repo Self Consistency Checker

PyPI Docs Site Repo Python 3.15 License

CI Docs-Deploy Pre-Release Release Links Dependabot

pup logo

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 structure
  • pyproject.toml metadata
  • 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.toml exists
  • pyproject.toml can 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/denisecase/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

.annotations/annotations.md

Citation

CITATION.cff

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pup_check-0.0.5.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pup_check-0.0.5-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file pup_check-0.0.5.tar.gz.

File metadata

  • Download URL: pup_check-0.0.5.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

Hashes for pup_check-0.0.5.tar.gz
Algorithm Hash digest
SHA256 21d3a38f56ffd3226266df9a2c1d547bd5d3c7b567b97a779b7a956ac0d9b745
MD5 7e638418b97bead0856e0f404cf394fe
BLAKE2b-256 bed465839a87f5a878fa339f6b7118f77c758d6cd1f6bfe28ab3249ba445f7b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pup_check-0.0.5.tar.gz:

Publisher: release-pypi.yml on denisecase/pup-check

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pup_check-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pup_check-0.0.5-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

Hashes for pup_check-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3f44cca4ee6d7043144b7be4ff433381f4400608c31170fb550ccb7658ffb089
MD5 c732c29dd546d1a11f731c495d15db6e
BLAKE2b-256 561a87a3b732577fb7578b4c98f9bc779c81f0fd7bf21569f130cec0c4346776

See more details on using hashes here.

Provenance

The following attestation bundles were made for pup_check-0.0.5-py3-none-any.whl:

Publisher: release-pypi.yml on denisecase/pup-check

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page