mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
docs: Add contributing guide and docs about performance tests (#235)
This commit is contained in:
parent
3404eede1e
commit
c8fb4081f7
6 changed files with 222 additions and 25 deletions
26
README.md
26
README.md
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
[](https://github.com/antonbabenko/pre-commit-terraform/releases)  [](https://www.codetriage.com/antonbabenko/pre-commit-terraform)
|
||||
|
||||
Want to Contribute? Check [open issues](https://github.com/antonbabenko/pre-commit-terraform/issues?q=label%3A%22good+first+issue%22+is%3Aopen+sort%3Aupdated-desc) and [contributing notes](/.github/CONTRIBUTING.md).
|
||||
|
||||
* [How to install](#how-to-install)
|
||||
* [1. Install dependencies](#1-install-dependencies)
|
||||
* [2. Install the pre-commit hook globally](#2-install-the-pre-commit-hook-globally)
|
||||
|
|
@ -15,8 +17,6 @@
|
|||
* [terraform_tflint](#terraform_tflint)
|
||||
* [terraform_tfsec](#terraform_tfsec)
|
||||
* [terraform_validate](#terraform_validate)
|
||||
* [Notes for contributors](#notes-for-contributors)
|
||||
* [Run and debug hooks locally](#run-and-debug-hooks-locally)
|
||||
* [Authors](#authors)
|
||||
* [License](#license)
|
||||
|
||||
|
|
@ -330,28 +330,6 @@ Example:
|
|||
|
||||
**Warning:** If you use Terraform workspaces, DO NOT use this workaround ([details](https://github.com/antonbabenko/pre-commit-terraform/issues/203#issuecomment-918791847)). Wait to [`force-init`](https://github.com/antonbabenko/pre-commit-terraform/issues/224) option implementation
|
||||
|
||||
## Notes for contributors
|
||||
|
||||
1. Python hooks are supported now too. All you have to do is:
|
||||
1. add a line to the `console_scripts` array in `entry_points` in `setup.py`
|
||||
2. Put your python script in the `pre_commit_hooks` folder
|
||||
|
||||
Enjoy the clean, valid, and documented code!
|
||||
|
||||
### Run and debug hooks locally
|
||||
|
||||
```bash
|
||||
pre-commit try-repo {-a} /path/to/local/pre-commit-terraform/repo {hook_name}
|
||||
```
|
||||
|
||||
I.e.
|
||||
|
||||
```bash
|
||||
pre-commit try-repo /mnt/c/Users/tf/pre-commit-terraform terraform_fmt # Run only `terraform_fmt` check
|
||||
pre-commit try-repo -a ~/pre-commit-terraform # run all existing checks from repo
|
||||
```
|
||||
|
||||
Running `pre-commit` with `try-repo` ignores all arguments specified in `.pre-commit-config.yaml`.
|
||||
|
||||
## Authors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue