forked from ansible/galaxy_collection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
32 lines (32 loc) · 927 Bytes
/
.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
---
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: 'https://github.com/ansible-community/ansible-lint.git'
rev: v6.22.2
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"
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.12.1
hooks:
- id: markdownlint-cli2
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
name: flake8
entry: flake8
types: [python]
...