Difference between revisions of "Pre-commit"
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
* <code>[[requirements.txt]]</code> | * <code>[[requirements.txt]]</code> | ||
* [[Git hook]] scripts | * [[Git hook]] scripts | ||
− | * [[Pull | + | * [[Pull Request (PR)]] |
* <code>[[.pre-commit-config.yaml]]</code> | * <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 (PR)
.pre-commit-config.yaml
- GitHub Actions:
pre-commit:
See also
Advertising: