A collection of additional pre-commit hooks for Git repositories. This package provides useful hooks to enhance your development workflow, including checking for untracked files that might need to be committed or ignored.
Add to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/adaptivekind/pre-commit-hooks
rev: main
hooks:
- id: check-untracked-filesChecks for untracked files in your Git repository and warns about files that might need to be committed or added to .gitignore.
Usage:
- id: check-untracked-files
args: [--no-fail] # Optional: warn instead of failingArguments:
--no-fail: Warn about untracked files but don't fail the hook
Install development dependencies and pre-commit hooks:
pip install -e .
pre-commit installTo test the semantic release process:
pip install python-semantic-release
semantic-release --help
semantic-release -v version