Skip to content
Snippets Groups Projects

Ansible pre-commit config

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by nimrod
    .pre-commit-config.yaml 1.16 KiB
    ---
    repos:
      - repo: https://github.com/pre-commit/pre-commit-hooks.git
        rev: v3.4.0
        hooks:
          - id: check-added-large-files
          - id: check-executables-have-shebangs
          - id: check-merge-conflict
          - id: check-symlinks
          - id: trailing-whitespace
    
      - repo: https://github.com/Yelp/detect-secrets
        rev: v0.14.3
        hooks:
          - id: detect-secrets
    
      - repo: https://github.com/adrienverge/yamllint
        rev: v1.25.0
        hooks:
          - id: yamllint
    
      - repo: https://github.com/amperser/proselint/
        rev: 0.10.2
        hooks:
          - id: proselint
            types: [plain-text]
            exclude: LICENSE
    
      - repo: https://github.com/executablebooks/mdformat.git
        rev: 0.5.3
        hooks:
          - id: mdformat
    
      - repo: https://git.shore.co.il/nimrod/shell-pre-commit.git
        rev: v0.6.0
        hooks:
          - id: shell-lint
    
      - repo: https://github.com/shellcheck-py/shellcheck-py.git
        rev: v0.7.1.1
        hooks:
          - id: shellcheck
    
      - repo: https://git.shore.co.il/ansible/ansible-pre-commit.git
        rev: v0.10.0
        hooks:
          - id: ansible-syntax-check
    
      - repo: https://github.com/ansible/ansible-lint
        rev: v4.3.7
        hooks:
          - id: ansible-lint
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment