Python pre-commit-hook

Open-source Python projects categorized as pre-commit-hook

Top 9 Python pre-commit-hook Projects

pre-commit-hook
  1. black

    The uncompromising Python code formatter

    Project mention: Ruff: Python linter and code formatter written in Rust | news.ycombinator.com | 2025-01-20

    > I appreciate that Black annoyed everyone on our team about the same amount but in different ways.

    If it did affect people equally, it would be great. Unfortunately, spaces for indentation is an accessibility issue and the Black maintainers are hostile to making this configurable. Normally I am in agreement about minimising configurability, but this isn’t a matter of taste, it is making the Python ecosystem more difficult for some disabled people to participate in.

    https://github.com/psf/black/issues/2798

    Fortunately, Ruff makes this configurable, so you don’t have to choose between autoformatting and accessibility any more.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. nbQA

    Run ruff, isort, pyupgrade, mypy, pylint, flake8, and more on Jupyter Notebooks

  4. conventional-pre-commit

    A pre-commit hook that checks commit messages for Conventional Commits formatting

    Project mention: Git-cliff – Generate changelog from the Git history | news.ycombinator.com | 2024-06-27

    You can use conventional pre-commit[0] to validate that commit messages follow the convention and use only the types that the team agreed upon.

    This still requires discipline to choose the "right" type and scope.

    [0] -- https://github.com/compilerla/conventional-pre-commit

  5. django-urlconfchecks

    A package for type-checking the URLs and associated views for Django

  6. pre-commit-shfmt

    shfmt hook for pre-commit, with auto install

  7. git-limiter

    ⏱️ Tool to stop you from pushing huge diffs

  8. version-checker

    pre-commit hook: make sure your package doesn't refer to different versions of itself across the codebase ✅ (by jalvaradosegura)

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. cookiecutter-poetry-config-management

    Cookiecutter python template to get you started without wasting any time setting up virtual environments, vscode python paths, writing settings management code, setting up git pre-commit hooks and much more.

  11. pydependence

    🕵️🐍 Generate requirements.txt and pyproject.toml extras across modules, with configurable starting points, using import graph traversal and the python AST. Fully configurable and works with pre-commit.

    Project mention: Generate pyproject.toml requirements and extras based on imports across projects | news.ycombinator.com | 2024-09-30
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python pre-commit-hook discussion

Log in or Post with

Python pre-commit-hook related posts

  • Ansible with GitHub Actions

    1 project | dev.to | 19 Sep 2024
  • The Bullhorn #95 (Ansible Newsletter)

    3 projects | /r/ansible | 21 Mar 2023
  • Open Source Collection of Ansible Good and Bad Practices

    1 project | /r/ansible | 5 Oct 2022
  • ansible-lint 6.8.0b1 is out

    1 project | /r/ansible | 1 Oct 2022
  • Correct use of block: and when: (key-order)

    1 project | /r/ansible | 26 Sep 2022
  • GitHub - lewislbr/ready: A program to run tasks before a commit.

    2 projects | /r/golang | 22 Oct 2021
  • Parse and verify Ansible playbook from Python

    1 project | /r/ansible | 4 May 2021
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 10 Feb 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Index

What are some of the best open-source pre-commit-hook projects in Python? This list will help you:

# Project Stars
1 black 39,524
2 nbQA 1,076
3 conventional-pre-commit 379
4 django-urlconfchecks 62
5 pre-commit-shfmt 57
6 git-limiter 28
7 version-checker 5
8 cookiecutter-poetry-config-management 3
9 pydependence 2

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that Python is
the 2nd most popular programming language
based on number of references?