Python pre-commit-hook

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

Top 8 Python pre-commit-hook Projects

  • black

    The uncompromising Python code formatter

    Project mention: Releasing my Python Project | | 2023-11-26

    1. LICENSE: This file contains information about the rights and permissions granted to users regarding the use, modification, distribution, and sharing of the software. I already had an MIT License in my project. 2. pyproject.toml: It is a configuration file typically used for specifying build requirements and backend build systems for Python projects. I was already using this file for Black code formatter configuration. 3. Used as a documentation file for your project, typically includes project overview, installation instructions and optionally, contribution instructions. 4. example_package_YOUR_USERNAME_HERE: One big change I had to face was restructuring my project, essentially packaging all files in this directory. The name of this directory should be what you want to name your package and shoud not conflict with any of the existing packages. Of course, since its a Python Package, it needs to have an 5. tests/: This is where you put all your unit and integration tests, I think its optional as not all projects will have tests. The rest of the project remains as is.

  • nbQA

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

    Project mention: Jupyter lab code formatter? | /r/learnpython | 2023-05-14
  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at

  • conventional-pre-commit

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

    Project mention: Do I need to be Admin to get a pre-receive hook working? | /r/gitlab | 2023-05-08

    For example I want to reject poorly formatted commit messages with

  • django-urlconfchecks

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

  • pre-commit-shfmt

    shfmt hook for pre-commit, with auto install

    Project mention: Pure Sh Bible | | 2023-04-30
  • git-limiter

    ⏱️ Tool to stop you from pushing huge diffs

    Project mention: git-limiter: 🧭 Tool to stop you from pushing huge diffs | /r/Python | 2023-04-08
  • 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.

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • version-checker

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

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). The latest post mention was on 2023-11-26.

Python pre-commit-hook related posts


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

Project Stars
1 black 35,497
2 nbQA 902
3 conventional-pre-commit 231
4 django-urlconfchecks 52
5 pre-commit-shfmt 27
6 git-limiter 26
7 cookiecutter-poetry-config-management 3
8 version-checker 3
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives