forked from ocf/puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.42 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
repos:
- repo: https://github.com/chriskuehl/puppet-pre-commit-hooks.git
sha: v2.0.1
hooks:
- id: puppet-validate
- id: erb-validate
- id: puppet-lint
args:
- --fail-on-warnings
- --no-140chars-check
- --no-documentation-check
- --no-puppet_url_without_modules-check
- --no-arrow_alignment-check
- --no-arrow_on_right_operand_line-check
- repo: https://github.com/pre-commit/pre-commit-hooks.git
sha: v0.9.5
hooks:
- id: autopep8-wrapper
- id: flake8
- id: check-added-large-files
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-xml
exclude: ^modules/ocf_desktop/files/pam/.*\.xml$
- id: check-yaml
- id: debug-statements
- id: double-quote-string-fixer
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
exclude: \.preseed$
- repo: https://github.com/asottile/reorder_python_imports.git
sha: v0.3.5
hooks:
- id: reorder-python-imports
- repo: local
hooks:
- id: no-resource-defaults
language: pcre
name: No resource defaults are used (see https://github.com/ocf/puppet/pull/58)
entry: ^\s*[A-Z][A-Za-z0-9:]+\s*{
types: [puppet]
exclude: ^manifests/