Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit bf7bec0d authored by Dorian Turba's avatar Dorian Turba
Browse files

add example of use for pre-commit

parent a55f734e
No related branches found
No related tags found
No related merge requests found
...@@ -27,3 +27,14 @@ framework for managing and maintaining multi-language pre-commit hooks. ...@@ -27,3 +27,14 @@ framework for managing and maintaining multi-language pre-commit hooks.
To add configuration to `pre-commit`, you can add a `.pre-commit-config.yaml` file to To add configuration to `pre-commit`, you can add a `.pre-commit-config.yaml` file to
the root of your repository. This file will be used by `pre-commit` to configure the the root of your repository. This file will be used by `pre-commit` to configure the
hooks. hooks.
## Example of use
Here is a configuration example for `pre-commit` for `pre-push` stage:
```yaml
pre-push:
extends: pre-commit
variables:
PRE_COMMIT_RUN: pre-commit run --all-files --hook-stage pre-push
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment