-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path.pre-commit-config.yaml
46 lines (40 loc) · 1.23 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
exclude: "^(roles/kube_prometheus_stack/files/jsonnet|charts|plugins/modules/subnet.py)"
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