blob: 2c0ca4e124b34d67b2d728b3546c5f922566b73d [file] [log] [blame]
exclude: "^(roles/kube_prometheus_stack/files/jsonnet|charts)"
repos:
- repo: local
hooks:
- id: check-spdx-copyright-text
name: Check SPDX-FileCopyrightText
entry: '# SPDX-FileCopyrightText: © [0-9]{4} VEXXHOST, Inc.'
language: pygrep
args: [--negate]
files: ^images/.*/Dockerfile$
- id: check-spdx-license-identifier
name: Check SPDX-License-Identifier
entry: '# SPDX-License-Identifier: GPL-3.0-or-later'
language: pygrep
args: [--negate]
files: ^images/.*/Dockerfile$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: end-of-file-fixer
exclude: ^images/.*/patches/.*\.patch$
- id: trailing-whitespace
exclude: ^images/.*/patches/.*\.patch$
- repo: https://github.com/psf/black
rev: 24.4.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/ansible/ansible-lint.git
rev: v25.1.2
hooks:
- id: ansible-lint