pup-clean: Professional Python Project: Instructor Repo Cleaner
Opinionated professional Python repository cleaner
Purpose
pup-clean prepares instructor repositories for release as student project
templates.
It removes known disposable development artifacts and inspects project source code to discover generated data, database, and image artifacts that should not be included in the student version of the repository.
Dry run is the default.
Nothing is deleted unless --delete is provided.
Clean a Repository
# see what would be removed (dry run, the default)
uvx pup-clean
# use the latest published version
uvx pup-clean@latest
# remove all detected generated artifacts (CAUTION: DESTRUCTIVE)
uvx pup-clean --delete
# preview only specified cleanup targets
uvx pup-clean project.log data/prepared/sales.csv
# delete only specified detected cleanup targets (CAUTION: DESTRUCTIVE)
uvx pup-clean --delete project.log data/prepared/sales.csv docs/images/sales_by_region.png
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-clean
cd pup-clean
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 and see all detected cleanup targets
uv run pup-clean
# delete all detected cleanup targets (CAUTION: DESTRUCTIVE)
uv run pup-clean --delete
# preview only specified cleanup targets
uv run pup-clean project.log data/prepared/sales.csv
# delete only specified detected cleanup targets (CAUTION: DESTRUCTIVE)
uv run pup-clean --delete project.log data/prepared/sales.csv docs/images/sales_by_region.png
# 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_clean-0.0.5.tar.gz.
File metadata
- Download URL: pup_clean-0.0.5.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc147b734f19671735207de703f3d39cc2b0133b96f33fc9eaca42a7a8c98da3
|
|
| MD5 |
d1512d2a2fb6cd69c5608ece7df6ee73
|
|
| BLAKE2b-256 |
a66d7b4e7916e7e631c81329225b6a86ac75370ea97e89c640873c31e5195033
|
Provenance
The following attestation bundles were made for pup_clean-0.0.5.tar.gz:
Publisher:
release-pypi.yml on denisecase/pup-clean
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pup_clean-0.0.5.tar.gz -
Subject digest:
fc147b734f19671735207de703f3d39cc2b0133b96f33fc9eaca42a7a8c98da3 - Sigstore transparency entry: 2396415857
- Sigstore integration time:
-
Permalink:
denisecase/pup-clean@64dc0c7ecf6c60af54ee80d7b0fb1062693d5e3b -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/denisecase
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@64dc0c7ecf6c60af54ee80d7b0fb1062693d5e3b -
Trigger Event:
push
-
Statement type:
File details
Details for the file pup_clean-0.0.5-py3-none-any.whl.
File metadata
- Download URL: pup_clean-0.0.5-py3-none-any.whl
- Upload date:
- Size: 12.8 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 |
1fb669b93e632a23cdf8dc2572dd78c4d56d2184eb04dfbfabe8f8d6aee494f1
|
|
| MD5 |
ca794dee99f61fbe062e1267ed348216
|
|
| BLAKE2b-256 |
7b3622958e0ec7559f104494caa0c83a6218db9bb69acbea7a3765df2823ded4
|
Provenance
The following attestation bundles were made for pup_clean-0.0.5-py3-none-any.whl:
Publisher:
release-pypi.yml on denisecase/pup-clean
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pup_clean-0.0.5-py3-none-any.whl -
Subject digest:
1fb669b93e632a23cdf8dc2572dd78c4d56d2184eb04dfbfabe8f8d6aee494f1 - Sigstore transparency entry: 2396415928
- Sigstore integration time:
-
Permalink:
denisecase/pup-clean@64dc0c7ecf6c60af54ee80d7b0fb1062693d5e3b -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/denisecase
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@64dc0c7ecf6c60af54ee80d7b0fb1062693d5e3b -
Trigger Event:
push
-
Statement type: