forked from redhat-cop/infra.aap_configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
51 lines (51 loc) · 1.51 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
47
48
49
50
51
---
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
# Disabling the separate yamllint as it can now be done by ansible-lint with our config moved to TLD.
# - repo: 'https://github.com/adrienverge/yamllint.git'
# rev: v1.26.3
# hooks:
# - id: yamllint
# entry: yamllint -c .github/workflow-config/.yamllint.yml
# types:
# - yaml
- repo: 'https://github.com/ansible-community/ansible-lint.git'
rev: v6.20.3
hooks:
# see discussions here about what arguments are used, and behavior
# https://github.com/ansible/ansible-lint/issues/649
# Roles will trigger an "unknown file type"
# https://github.com/ansible/ansible-lint/issues/808
- id: ansible-lint
pass_filenames: false
always_run: true
entry: "ansible-lint"
args:
- "--profile=production"
additional_dependencies:
- "ansible-core>=2.13"
- "yamllint>=1.26,<2.0"
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.10.0
hooks:
- id: markdownlint-cli2
- repo: https://github.com/ambv/black
rev: 23.9.1
hooks:
- id: black
name: black
entry: black
args: [--config=.black.cfg, --check, --diff]
types: [python]
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
name: flake8
entry: flake8
types: [python]
...