Difference between revisions of "Pre-commit"
Jump to navigation
Jump to search
| (20 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{lowercase}} | + | {{lowercase}} [[wikipedia:pre-commit]] (https://pre-commit.com/) |
| − | |||
* https://github.com/pre-commit/action | * https://github.com/pre-commit/action | ||
| − | 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> | ||
| + | * <code>[[pre-commit --help]]</code> | ||
| − | + | == Examples == | |
| − | + | * <code>[[pre-commit (execution example)]]</code> | |
* <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> | ||
| − | * [[GitHub Actions]]: <code>uses: pre-commit/action@ | + | * [[GitHub Actions]]: <code>[[uses: pre-commit/action]]@v3.0.0</code> |
== Related == | == Related == | ||
| Line 20: | Line 20: | ||
* <code>[[git commit]]</code> | * <code>[[git commit]]</code> | ||
* <code>[[requirements.txt]]</code> | * <code>[[requirements.txt]]</code> | ||
| − | * [[Git | + | * [[Git Hooks (.git/hooks)]] |
| − | * [[Pull | + | * [[Pre-commit Terraform hooks]] |
| − | * [[.pre-commit-config.yaml]] | + | * [[Pull Request (PR)]] |
| + | * <code>[[.pre-commit-config.yaml]]</code> | ||
* [[GitHub Actions]]: <code>[[pre-commit:]]</code> | * [[GitHub Actions]]: <code>[[pre-commit:]]</code> | ||
| + | * [[Fourmolu]] | ||
| + | * [[Linter]] | ||
| + | * [[Githooks]] | ||
| + | * <code>[[.git/hooks/]]</code> | ||
| + | * [[kics]] | ||
== See also == | == See also == | ||
Latest revision as of 15:23, 30 March 2026
wikipedia:pre-commit (https://pre-commit.com/)
Contents
Installation[edit]
brew install pre-commitpip install pre-commitpre-commit --help
Examples[edit]
- Configuration:
.pre-commit-config.yaml
Related[edit]
git commit --no-verifygit commitrequirements.txt- Git Hooks (.git/hooks)
- Pre-commit Terraform hooks
- Pull Request (PR)
.pre-commit-config.yaml- GitHub Actions:
pre-commit: - Fourmolu
- Linter
- Githooks
.git/hooks/- kics
See also[edit]
Advertising: