Difference between revisions of "Pre-commit"
Jump to navigation
Jump to search
Line 21: | Line 21: | ||
* [[Git hook]] scripts | * [[Git hook]] scripts | ||
* [[Pull request]] | * [[Pull request]] | ||
− | * [[.pre-commit-config.yaml]] | + | * <code>[[.pre-commit-config.yaml]]</code> |
* [[GitHub Actions]]: <code>[[pre-commit:]]</code> | * [[GitHub Actions]]: <code>[[pre-commit:]]</code> | ||
Revision as of 18:00, 28 February 2023
Contents
Installation
brew install pre-commit
pip install pre-commit
pre-commit --help
Examples
pre-commit install
pre-commit run --all-files
- Configuration:
.pre-commit-config.yaml
- GitHub Actions:
uses: pre-commit/[email protected]
Related
git commit --no-verify
git commit
requirements.txt
- Git hook scripts
- Pull request
.pre-commit-config.yaml
- GitHub Actions:
pre-commit:
See also
Advertising: