Skip to main content

Pimp My Repo

PyPI CI codecov Ruff Type checked: mypy

🧙🏼‍♂️ Turn "we should add linting" into a commit.

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:

  1. Configures tools in strict mode: Ruff with all rules enabled, Mypy with --strict (or ty with error-on-warning).
  2. Suppresses all existing violations: automatically adds # noqa and # type: ignore / # ty: ignore to every current offender.
  3. 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, and lint recipes out of the box
  • 🏗️ CI — GitHub Actions workflow running lock, lint, type-check, and test steps (GitHub remotes only)

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.

Metadata

Release files for pimp-my-repo 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pimp-my-repo 1.1.0
File Size Uploaded Provenance Actions
pimp_my_repo-1.1.0.tar.gz 206.1 kB With provenance Details for pimp_my_repo-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pimp-my-repo 1.1.0
File Interpreter ABI Platform Actions
pimp_my_repo-1.1.0-py3-none-any.whl Python 3 none any Details for pimp_my_repo-1.1.0-py3-none-any.whl

Total release size: 270.9 kB

Release files / pimp_my_repo-1.1.0.tar.gz

Download URL pimp_my_repo-1.1.0.tar.gz
Size 206.1 kB
Tags Source
SHA-256 checksum
How to use checksums
11839b074294bac4f35482968fc168f75ebf6082d050629c501238a7d711f37f
BLAKE2b-256 checksum
How to use checksums
67fad7342db9fbd5eff0c747ba945be28209b2ebca0ffac146fb8627284f3bf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / pimp_my_repo-1.1.0-py3-none-any.whl

Download URL pimp_my_repo-1.1.0-py3-none-any.whl
Size 64.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe96414cbc3cc0594d796d51fd78c416d48fb0e1657004cf2ee138fd67aa1e73
BLAKE2b-256 checksum
How to use checksums
84a5ac0d254ef6f49fa69e85d40a7df76f8a947fa4e34d4fe5484c65da5b8062
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Security for pimp-my-repo 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pimp_my_repo-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page