mathspp
  • Blog
    • Pydon'ts
    • Problems
    • TIL
    • Twitter threads
  • Books
  • Talks
  • Trainings
    • Advanced iteration
    • Python for scripting and automation
    • Rust for Python developers
  • Courses
  • About
Link blog

pre-commit: install with uv

by Adam Johnson on 07-05-2025 14:25 (via)

In this post, Adam shares how he uses uv to install pre-commit using uv's tool command:

> uv tool install pre-commit

What Adam adds, and that I didn't know about, is the plugin pre-commit-uv, which makes pre-commit use uv to manage its Python-related hooks, speeding up the pre-commit checks. After reading this article, I reinstalled pre-commit:

> uv tool install pre-commit --with pre-commit-uv

Previous link Next link

As seen on Cookie Clicker's News Ticker.

mathspp
  • Blog
    • Pydon'ts
    • Problems
    • TIL
    • Twitter threads
  • Books
  • Talks
  • Trainings
    • Advanced iteration
    • Python for scripting and automation
    • Rust for Python developers
  • Courses
  • About