Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • main
  • v0.1.0
  • v0.2.0
  • v0.3.0
  • v0.4.0
  • v0.5.0
  • v0.5.1
  • v0.5.2
8 results

Target

Select target project
  • nimrod/pre-commit-hooks
1 result
Select Git revision
  • main
  • v0.1.0
  • v0.2.0
  • v0.3.0
  • v0.4.0
  • v0.5.0
  • v0.5.1
  • v0.5.2
8 results
Show changes
Commits on Source (2)
...@@ -8,7 +8,14 @@ A collection of [pre-commit](https://pre-commit.com/) hooks. ...@@ -8,7 +8,14 @@ A collection of [pre-commit](https://pre-commit.com/) hooks.
- Supported Python 3 version (at time of writing 3.6 or later). - Supported Python 3 version (at time of writing 3.6 or later).
- [pre-commmit](https://pre-commit.com/) 2.0.0 or later. - [pre-commmit](https://pre-commit.com/) 2.0.0 or later.
- [Terraform](https://www.terraform.io/) (for the terraform hooks).
## Optional requirements
- [Terraform](https://www.terraform.io/) or [OpenTofu](https://opentofu.org/)
(for the `terraform-*` hooks).
- [Packer](https://www.packer.io/) (for the `packer-*` hooks).
- [Docker Compose](https://docs.docker.com/compose/) (for the `docker-compose`
hook).
## Example .pre-commit-config.yaml ## Example .pre-commit-config.yaml
...@@ -52,12 +59,14 @@ PyPI, add it in the `additional_dependencies` section of the hook. ...@@ -52,12 +59,14 @@ PyPI, add it in the `additional_dependencies` section of the hook.
### `terraform-fmt` ### `terraform-fmt`
Format Terraform files using `terraform fmt`. Format Terraform files using `terraform fmt`.
Requires an installed `terraform`. Requires an installed `terraform`. If you wish to use `tofu` instead, set the
`TF_CLI` environment variable to `tofu`.
### `terraform-validate` ### `terraform-validate`
Validate Terraform modules using `terraform validate`. Validate Terraform modules using `terraform validate`.
Requires an installed `terraform`. Requires an installed `terraform`. If you wish to use `tofu` instead, set the
`TF_CLI` environment variable to `tofu`.
### `packer-fix` ### `packer-fix`
......
...@@ -10,7 +10,7 @@ setup( ...@@ -10,7 +10,7 @@ setup(
author_email="nimrod@shore.co.il", author_email="nimrod@shore.co.il",
version=VERSION, version=VERSION,
install_requires=[ install_requires=[
"ansible>=4", "ansible-core>=2.14",
"poetry", "poetry",
], ],
entry_points={ entry_points={
......