pre-commit
Package — Code QualityPython 3.8+Intermediate
Git pre-commit hook framework
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.8+
- Dependencies
- cfgv, identify, nodeenv, PyYAML, virtualenv
- Install
pip install pre-commit
Learn by Difficulty
Quick Example
python
# Install: pip install pre-commit import pre_commit # Basic pre-commit usage print(f"Using pre-commit") # See documentation for detailed examples
pre-commit is a third-party package. Git pre-commit hook framework. Install with: pip install pre-commit
Try in PlaygroundTags
packagecode-qualitygithooksautomation
Related Items
ruff
Package — Code Quality
Extremely fast linter and formatter in Rust; replaces flake8, isort
black
Package — Code Quality
Opinionated formatter: one canonical Python style
flake8
Package — Code Quality
Linting: PyFlakes + pycodestyle + McCabe complexity
mypy
Package — Code Quality
Static type checker for Python type annotations
isort
Package — Code Quality
Auto-sort and organize import statements
git
Dev Tool — VCS
Distributed version control system; the standard for all Python projects