51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
exclude: "^(roles/kube_prometheus_stack/files/jsonnet|charts|plugins/modules/subnet.py|patches/)"
|
|
|
|
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$
|
|
- id: mixed-line-ending
|
|
args: ['--fix=lf']
|
|
|
|
- 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.6.1
|
|
hooks:
|
|
- id: ansible-lint
|
|
additional_dependencies:
|
|
- ansible-core==2.18.6
|