forked from mrlesmithjr/ansible-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (40 loc) · 1.31 KB
/
.pre-commit-config.yaml
File metadata and controls
40 lines (40 loc) · 1.31 KB
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: no-commit-to-branch
args: [--branch, develop, --branch, master, --branch, main]
- id: trailing-whitespace
- repo: https://github.com/ansible-community/ansible-lint
rev: v5.4.0
hooks:
- id: ansible-lint
additional_dependencies:
- .[community,yamllint]
# fix dependencies `rich` break change
# see https://github.com/ansible/ansible-lint/issues/1795
- rich==10.11.0
# fix `an AnsibleCollectionFinder has not been installed in this process`
# see https://github.com/ansible/ansible-lint/issues/2945
- ansible-core==2.11.4
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 3.9.1
hooks:
- id: flake8
- repo: https://github.com/adrienverge/yamllint
rev: v1.26.2
hooks:
- id: yamllint