I'd like to provide some context before diving into the details. pre-commit is an open-source project that simplifies defining git pre-commit hooks. Our project is already utilizing a defined pre-commit hook, which you can view here.
This feature request proposes that datacontract-cli should be described as a pre-commit hook for the lint subcommand. To achieve this, we need to create a .pre-commit-hooks.yaml file. For more detailed information, please refer to the guidelines here.
Hi everyone,
I'd like to provide some context before diving into the details. pre-commit is an open-source project that simplifies defining git pre-commit hooks. Our project is already utilizing a defined pre-commit hook, which you can view here.
This feature request proposes that
datacontract-cli
should be described as a pre-commit hook for thelint
subcommand. To achieve this, we need to create a.pre-commit-hooks.yaml
file. For more detailed information, please refer to the guidelines here.Here is an example of how the usage could look:
Example
.pre-commit-config.yaml
definition:This repository should contain at least the following file and configuration:
Example
.pre-commit-hooks.yaml
definition:Thank you all for your assistance.
Best regards,
Burak Ince