Commit 2c76b41c authored by nimrod's avatar nimrod
Browse files

Remove unsupported hooks.

- Remove the Ansible Vault check hook, it did just the opposite. In case
  it's needed, use the one from
https://git.shore.co.il/ansible/ansible-pre-commit, any tag before
0.8.0.
- Remove the pip-outdated hook, it's a bad replacement for piprot (which
  is abandoned). If it's still needed use
https://git.shore.co.il/nimrod/python-pre-commit.
parent 7da948c8
Loading
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -15,14 +15,6 @@
  types: [yaml]
  args: ['--inventory=localhost,', '--syntax-check']

- id: ansible-vault-check
  name: Verify vaulted files
  description: Verify that Ansible Vault files are vaulted.
  language: pygrep
  files: vault
  entry: |-
      ANSIBLE_VAULT

- id: docker-compose
  name: docker-compose config
  description: Validate the Docker Compose file using docker-compose config
@@ -60,11 +52,3 @@
  entry: ./hooks/branch-merge-conflicts
  pass_filenames: false
  always_run: true

- id: pip-outdated
  name: pip-outdated
  description: Find outdated Python dependencies in your requirements files.
  language: python
  entry: pip-outdated
  args: ['--verbose']
  files: 'requirements.*\.txt$'
+0 −10
Original line number Diff line number Diff line
@@ -19,13 +19,11 @@ A collection of [pre-commit](https://pre-commit.com/) hooks.
  hooks:
    - id: shell-validate
    - id: ansible-syntax-check
    - id: ansible-vault-check
    - id: docker-compose
    - id: terraform-fmt
    - id: terraform-validate
    - id: poetry-check
    - id: branch-merge-conflict
    - id: pip-outdated
```

## Available hooks
@@ -38,10 +36,6 @@ Check shell scripts with `/bin/sh -en`.

Check Ansible playbooks for syntax errors.

### `ansible-vault-check`

Verify that Ansible Vault files are vaulted.

### `docker-compose`

Validate the Docker Compose file using docker-compose config.
@@ -64,10 +58,6 @@ Validate `pyproject.toml` files using Poetry.

Checks for merge conflicts with a specific branch.

### `pip-outdated`

Find outdated Python dependencies in your requirements files.

## License

This software is licensed under the MIT license (see `LICENSE.txt`).
+1 −2
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@ setup(
    install_requires=[
        "ansible>=4",
        "docker-compose>=1.20",
        "pip-outdated",
        "poetry",
    ],
    entry_points={
@@ -20,7 +19,7 @@ setup(
            "docker-compose-validate=hooks.docker_compose_validate:main",
            "terraform-validate=hooks.terraform_validate:main",
            "terraform-fmt=hooks.terraform_fmt:main",
            "poetry-check=hook.poetry_check:main",
            "poetry-check=hooks.poetry_check:main",
        ]
    },
    packages=find_packages(),