---
stable_id: skills/skills-sh-trailofbits-skills-modern-python
type: skills
title: skills-sh-trailofbits-skills-modern-python
summary: >-
  # prek: Fast Pre-commit Hooks

  [prek](https://github.com/j178/prek) is a fast, Rust-native drop-in
  replacement for pre-commit. It uses the same `.pre-commit-config.yaml` format
  and is fully compatible with existing configurations.

  ## Why prek over pre-commit?

  | Feature | prek | pre-commit |

  |---------|------|------------|

  | Speed | ~7x faster hook installation | Slower |

  | Dependencies | Single binary, no runtime needed | Requires Python |

  | Disk usage | Shared toolchains between hooks | Isolated environments |

  | Parallelism | Parallel repo cloning and hook execution | Sequential |

  | Python management | Uses uv automatically | Manual Python setup |
tags:
  - skills-sh
  - skills-sh-all-time
source_url: https://raw.githubusercontent.com/trailofbits/skills/HEAD/plugins/modern-python/skills/modern-python/references/prek.md
license: ""
upstream_ref: https://skills.sh/trailofbits/skills/modern-python
github_stars: null
github_forks: null
github_is_organization: null
retrieved_at: 2026-06-11T08:32:55.176Z
content_sha256: 4be1c181c71aab64ba58573242a1c451d576a5c61ceeb400bb5827f4e1f9532a
---
