Difference between revisions of "Pre-commit"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 9: | Line 9: | ||
== Examples == | == Examples == | ||
* <code>[[pre-commit install]]</code> | * <code>[[pre-commit install]]</code> | ||
− | * <code>[[pre-commit run | + | * <code>[[pre-commit run --all-files]]</code> |
* Configuration: <code>[[.pre-commit-config.yaml]]</code> | * Configuration: <code>[[.pre-commit-config.yaml]]</code> |
Revision as of 08:19, 8 March 2023
Contents
Installation
brew install pre-commit
pip install pre-commit
pre-commit --help
Examples
- 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: