✨ Enhance your Python repository by adding cutting-edge development tools
Project description
Pimp My Repo
🧙🏼♂️ One command to modernize them all.
Strict linting, type checking, and CI for your legacy Python repo, with near-zero manual work. Run it once in your repo root — it creates its own local branch (nothing is pushed), so you can always walk away:
uvx pimp-my-repo
Alternatively, hand it off to your LLM — it can run PMR, review the result with full knowledge of the codebase, and clean up anything the automated run got slightly wrong:
📋 LLM prompt (click to expand)
From the repo root, on a clean branch, run `uvx pimp-my-repo`.
When the run finishes, read the output and follow any instructions printed.
Since you know this repo's structure, conventions, and goals, review the
created branch and fix anything that looks wrong or misconfigured — CI jobs,
pre-commit hooks, justfile recipes, etc.
If the run failed:
1. Find and inspect the log file it mentions.
2. If the failure has a straightforward fix in the repo's own code
(e.g. a broken import, a missing config key, an incompatible
dependency), go back to the original branch, delete the PMR branch,
apply the minimal fix on a new branch, then re-run `uvx pimp-my-repo`
from there.
3. If the failure looks like a PMR bug or something you can't easily fix,
stop and report what you found.
For context and reference on PMR, see https://github.com/asaf-kali/pimp-my-repo/blob/main/README.md.
Why legacy repos stay legacy
Adopting strict linting and type checking sounds great — until you run Ruff or Mypy for the first time and see 17,000 violations. Fixing them all before you can enforce a single rule isn't practical, so the tools stay off or "loose," and the debt compounds.
The baseline approach
pimp-my-repo skips the manual fix step entirely:
- Configures tools in strict mode: Ruff with all rules enabled, Mypy with
--strict(or ty witherror-on-warning). - Suppresses all existing violations: automatically adds
# noqaand# type: ignore/# ty: ignoreto every current offender. - Commits the result: you get a clean, passing CI baseline immediately.
New code must comply from day one. Legacy violations are silenced but visible; fix them incrementally, at your own pace, without blocking anyone.
What gets added
- 🚀 uv — modern dependency management
- ✨ Ruff — linting and formatting, strict mode, all existing violations suppressed
- 🐍 Mypy — static type checking, strict mode, all existing errors suppressed
- ⚡ ty (opt-in via
--ty) — Astral's fast type checker as a drop-in alternative to mypy - 🏖️ pre-commit — hooks to enforce quality before every commit
- 🎢 just — task runner with
install,test, andlintrecipes out of the box - 🏗️ CI (coming soon) — GitHub Actions or GitLab Pipeline configuration
Using ty instead of mypy
Pass --ty to replace the mypy boost with ty:
uvx pimp-my-repo --ty
ty runs dramatically faster than mypy and catches a different (often broader) set of type errors.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
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 pimp_my_repo-0.5.1.tar.gz.
File metadata
- Download URL: pimp_my_repo-0.5.1.tar.gz
- Upload date:
- Size: 166.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37bc2d0b59a708bdb7858972cf95859355a4be5dfdcd6c7bd78f678d14f432c6
|
|
| MD5 |
109045c3bb259ff17f4540eff1c85d17
|
|
| BLAKE2b-256 |
c8441d02b19256336759cc7534262b391e848dcc9a56adfcc73b579e4eb2ce96
|
Provenance
The following attestation bundles were made for pimp_my_repo-0.5.1.tar.gz:
Publisher:
ci.yml on asaf-kali/pimp-my-repo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pimp_my_repo-0.5.1.tar.gz -
Subject digest:
37bc2d0b59a708bdb7858972cf95859355a4be5dfdcd6c7bd78f678d14f432c6 - Sigstore transparency entry: 1417770465
- Sigstore integration time:
-
Permalink:
asaf-kali/pimp-my-repo@4ba1ee27fdc70d7ce5676f83f65886310766660b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/asaf-kali
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4ba1ee27fdc70d7ce5676f83f65886310766660b -
Trigger Event:
push
-
Statement type:
File details
Details for the file pimp_my_repo-0.5.1-py3-none-any.whl.
File metadata
- Download URL: pimp_my_repo-0.5.1-py3-none-any.whl
- Upload date:
- Size: 60.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46afc944695087e8f33d85e0011bc87eb5d6a1592eef8fcdee703977a482013e
|
|
| MD5 |
57c84898fcaf919930c182beb3481940
|
|
| BLAKE2b-256 |
58ca7658303ca13a7c02619c67fffe934aed58d17aad81abe2f0260ea248f835
|
Provenance
The following attestation bundles were made for pimp_my_repo-0.5.1-py3-none-any.whl:
Publisher:
ci.yml on asaf-kali/pimp-my-repo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pimp_my_repo-0.5.1-py3-none-any.whl -
Subject digest:
46afc944695087e8f33d85e0011bc87eb5d6a1592eef8fcdee703977a482013e - Sigstore transparency entry: 1417770470
- Sigstore integration time:
-
Permalink:
asaf-kali/pimp-my-repo@4ba1ee27fdc70d7ce5676f83f65886310766660b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/asaf-kali
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4ba1ee27fdc70d7ce5676f83f65886310766660b -
Trigger Event:
push
-
Statement type: