Difference between revisions of "Pre-commit"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
== Examples == | == Examples == | ||
− | * <code>[[pre-commit]]</code> | + | * <code>[[pre-commit (execution example)]]</code> |
* <code>[[pre-commit install]]</code> | * <code>[[pre-commit install]]</code> | ||
* <code>[[pre-commit run --all-files]]</code> | * <code>[[pre-commit run --all-files]]</code> | ||
Line 25: | Line 25: | ||
* [[GitHub Actions]]: <code>[[pre-commit:]]</code> | * [[GitHub Actions]]: <code>[[pre-commit:]]</code> | ||
* [[Fourmolu]] | * [[Fourmolu]] | ||
+ | * [[Linter]] | ||
== See also == | == See also == |
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: