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 →
Top 9 Python pre-commit-hook Projects
-
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.
-
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.
-
-
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-27You 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
-
-
-
-
version-checker
pre-commit hook: make sure your package doesn't refer to different versions of itself across the codebase ✅ (by jalvaradosegura)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
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.
-
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
Python pre-commit-hook discussion
Python pre-commit-hook related posts
-
Ansible with GitHub Actions
-
The Bullhorn #95 (Ansible Newsletter)
-
Open Source Collection of Ansible Good and Bad Practices
-
ansible-lint 6.8.0b1 is out
-
Correct use of block: and when: (key-order)
-
GitHub - lewislbr/ready: A program to run tasks before a commit.
-
Parse and verify Ansible playbook from Python
-
A note from our sponsor - CodeRabbit
coderabbit.ai | 10 Feb 2025
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 |