{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"Provides a collection of reusable pre-commit hooks for common code quality and file validation checks, integrated with the pre-commit framework.","skillfed_tags":["git-workflow","code-quality","automation"],"use_cases":["Prevent accidental commits of large binary files or datasets by enforcing a size limit before they reach the repository.","Validate YAML and JSON configuration files for syntax errors before they are committed, catching typos early.","Detect and block commits containing AWS credentials, private keys, or other sensitive credentials.","Enforce consistent file formatting (line endings, trailing whitespace, newline at end of file) across a team.","Block direct commits to protected branches like main or production to enforce code review workflows.","Check Python files for common mistakes like debug statements or breakpoint() calls left in code."],"what_it_does":"pre-commit-hooks is a collection of ready-to-use hooks designed to run within the pre-commit framework, catching common issues before code is committed. It provides validators for file syntax (YAML, JSON, XML, TOML), checks for problematic patterns (merge conflicts, debug statements, private keys), enforces file standards (line endings, trailing whitespace, shebangs), and prevents specific mistakes like committing large files or to protected branches.\n\nThe package depends on ruamel.yaml and tomli for parsing configuration and data files. It's designed to be dropped into a pre-commit configuration file and requires Python 3.9 or later. Each hook is a standalone command that can be selectively enabled or configured with arguments, making it flexible for different project needs without requiring custom hook development.","worth_installing":"Yes. pre-commit-hooks is a mature, actively maintained package with low install friction and no known vulnerabilities. It solves a real problem\u2014automating repetitive code quality checks at commit time\u2014and integrates seamlessly into existing pre-commit workflows. The permissive MIT license and broad hook coverage make it a practical choice for most projects."},"id":"pre-commit-hooks","links":{"html":"https://skillfed.io/packages/pre-commit-hooks","md":"https://skillfed.io/packages/pre-commit-hooks.md","pypi":"https://pypi.org/project/pre-commit-hooks/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-08-09","license_spdx":null,"license_treatment":"permissive","name":"pre-commit-hooks","python_support":"supports_current","summary":"Some out-of-the-box hooks for pre-commit."},"popularity":{"monthly_downloads":1841828,"position":3496,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"6.0.0"}
