Difference between revisions of "Pre-commit"
Jump to navigation
Jump to search
(23 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
* Homepage: https://pre-commit.com/ | * Homepage: https://pre-commit.com/ | ||
+ | * https://github.com/pre-commit/action | ||
+ | == Installation == | ||
+ | * <code>[[brew install pre-commit]]</code> | ||
+ | * <code>[[pip install]] pre-commit</code> | ||
+ | * <code>[[pre-commit --help]]</code> | ||
− | + | == Examples == | |
− | + | * <code>[[pre-commit (execution example)]]</code> | |
− | * <code>[[ | ||
* <code>[[pre-commit install]]</code> | * <code>[[pre-commit install]]</code> | ||
+ | * <code>[[pre-commit run --all-files]]</code> | ||
+ | |||
+ | * Configuration: <code>[[.pre-commit-config.yaml]]</code> | ||
− | * <code>[[pre-commit | + | * [[GitHub Actions]]: <code>[[uses: pre-commit/action]]@v3.0.0</code> |
== Related == | == Related == | ||
+ | * <code>[[git commit --no-verify]]</code> | ||
+ | * <code>[[git commit]]</code> | ||
* <code>[[requirements.txt]]</code> | * <code>[[requirements.txt]]</code> | ||
* [[Git hook]] scripts | * [[Git hook]] scripts | ||
− | * [[Pull | + | * [[Pull Request (PR)]] |
− | * [[.pre-commit-config.yaml]] | + | * <code>[[.pre-commit-config.yaml]]</code> |
+ | * [[GitHub Actions]]: <code>[[pre-commit:]]</code> | ||
+ | * [[Fourmolu]] | ||
+ | * [[Linter]] | ||
== See also == | == See also == | ||
− | * {{ | + | * {{pre-commit}} |
+ | [[Category:pre-commit]] | ||
[[Category:Git]] | [[Category:Git]] |
Latest revision as of 19:21, 7 February 2024
Contents
Installation[edit]
brew install pre-commit
pip install pre-commit
pre-commit --help
Examples[edit]
- Configuration:
.pre-commit-config.yaml
Related[edit]
git commit --no-verify
git commit
requirements.txt
- Git hook scripts
- Pull Request (PR)
.pre-commit-config.yaml
- GitHub Actions:
pre-commit:
- Fourmolu
- Linter
See also[edit]
Advertising: