11---
2+ default_language_version :
3+ python : python3
4+ minimum_pre_commit_version : " 1.14.0"
25repos :
3- - repo : https://github.com/PyCQA/doc8.git
4- rev : 0.8.1rc1
5- hooks :
6- - id : doc8
7- - repo : https://github.com/python/black.git
8- rev : 19.3b0
9- hooks :
10- - id : black
11- language_version : python3
12- - repo : https://github.com/pre-commit/pre-commit-hooks.git
13- rev : v2.2.3
6+ - repo : https://github.com/pre-commit/pre-commit-hooks
7+ rev : v2.5.0
148 hooks :
159 - id : end-of-file-fixer
1610 - id : trailing-whitespace
@@ -19,21 +13,23 @@ repos:
1913 - id : check-executables-have-shebangs
2014 - id : check-merge-conflict
2115 - id : debug-statements
16+ - repo : https://github.com/PyCQA/doc8.git
17+ rev : 0.8.1rc3
18+ hooks :
19+ - id : doc8
20+ - repo : https://github.com/python/black.git
21+ rev : 19.10b0
22+ hooks :
23+ - id : black
24+ language_version : python3
2225 - repo : https://gitlab.com/pycqa/flake8.git
23- rev : 3.7.8
26+ rev : 3.7.9
2427 hooks :
2528 - id : flake8
2629 additional_dependencies :
2730 - flake8-black
28- - repo : https://github.com/adrienverge/yamllint.git
29- rev : v1.16.0
30- hooks :
31- - id : yamllint
32- files : \.(yaml|yml)$
33- types : [file, yaml]
34- entry : yamllint --strict
3531 - repo : https://github.com/codespell-project/codespell.git
36- rev : v1.15 .0
32+ rev : v1.16 .0
3733 hooks :
3834 - id : codespell
3935 name : codespell
@@ -44,3 +40,32 @@ repos:
4440 args : []
4541 require_serial : false
4642 additional_dependencies : []
43+ - repo : https://github.com/adrienverge/yamllint.git
44+ rev : v1.20.0
45+ hooks :
46+ - id : yamllint
47+ files : \.(yaml|yml)$
48+ types : [file, yaml]
49+ entry : yamllint --strict -f parsable
50+ - repo : https://github.com/openstack-dev/bashate.git
51+ rev : 1.0.0
52+ hooks :
53+ - id : bashate
54+ entry : bashate --error . --ignore=E006,E040
55+ # Run bashate check for all bash scripts
56+ # Ignores the following rules:
57+ # E006: Line longer than 79 columns (as many scripts use jinja
58+ # templating, this is very difficult)
59+ # E040: Syntax error determined using `bash -n` (as many scripts
60+ # use jinja templating, this will often fail and the syntax
61+ # error will be discovered in execution anyway)
62+ - repo : https://github.com/ansible/ansible-lint.git
63+ rev : v4.2.0
64+ hooks :
65+ - id : ansible-lint
66+ always_run : true
67+ pass_filenames : false
68+ # do not add file filters here as ansible-lint does not give reliable
69+ # results when called with individual files.
70+ # https://github.com/ansible/ansible-lint/issues/611
71+ entry : env ANSIBLE_LIBRARY=molecule_vagrant/modules ansible-lint --force-color -p -v
0 commit comments