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