blob: 0fe99aa86886ad4e3e7cfa73a6e46207eb9efa84 [file] [log] [blame]
Mohammed Naser8ccabb62025-02-05 13:20:09 -05001exclude: "^(roles/kube_prometheus_stack/files/jsonnet|charts|plugins/modules/subnet.py)"
Mohammed Naser7d3c7972022-11-07 10:54:56 -05002
Mohammed Naserc3115c22022-08-30 18:52:23 -04003repos:
Mohammed Naser564caa82025-01-18 15:49:44 -05004 - repo: local
5 hooks:
6 - id: check-spdx-copyright-text
7 name: Check SPDX-FileCopyrightText
8 entry: '# SPDX-FileCopyrightText: © [0-9]{4} VEXXHOST, Inc.'
9 language: pygrep
10 args: [--negate]
11 files: ^images/.*/Dockerfile$
12 - id: check-spdx-license-identifier
13 name: Check SPDX-License-Identifier
14 entry: '# SPDX-License-Identifier: GPL-3.0-or-later'
15 language: pygrep
16 args: [--negate]
17 files: ^images/.*/Dockerfile$
18
Mohammed Naser4b24d9b2022-11-02 13:14:52 -040019 - repo: https://github.com/pre-commit/pre-commit-hooks
20 rev: v4.3.0
21 hooks:
22 - id: end-of-file-fixer
Mohammed Naser891a2902024-01-23 09:47:47 -050023 exclude: ^images/.*/patches/.*\.patch$
Mohammed Naser4b24d9b2022-11-02 13:14:52 -040024 - id: trailing-whitespace
Mohammed Naser891a2902024-01-23 09:47:47 -050025 exclude: ^images/.*/patches/.*\.patch$
Mohammed Naser4b24d9b2022-11-02 13:14:52 -040026
Mohammed Naserf3a14a32022-09-19 15:15:39 -040027 - repo: https://github.com/psf/black
Mohammed Naser2fd39612024-04-14 13:37:45 -040028 rev: 24.4.0
Mohammed Naserf3a14a32022-09-19 15:15:39 -040029 hooks:
30 - id: black
31
Mohammed Naser05ad9212022-09-19 16:46:29 -040032 - repo: https://github.com/pycqa/flake8
Mohammed Naser2fd39612024-04-14 13:37:45 -040033 rev: 7.0.0
Mohammed Naser05ad9212022-09-19 16:46:29 -040034 hooks:
35 - id: flake8
36
Mohammed Naserf3a14a32022-09-19 15:15:39 -040037 - repo: https://github.com/pycqa/isort
Mohammed Naser2fd39612024-04-14 13:37:45 -040038 rev: 5.13.2
Mohammed Naserf3a14a32022-09-19 15:15:39 -040039 hooks:
40 - id: isort
Mohammed Naser6080c9b2024-07-18 10:43:09 -040041 args: ["--profile", "black", "--filter-files"]
42
43 - repo: https://github.com/ansible/ansible-lint.git
Mohammed Naser388e2fc2025-02-18 09:25:27 -050044 rev: v25.1.2
Mohammed Naser6080c9b2024-07-18 10:43:09 -040045 hooks:
46 - id: ansible-lint