forked from aristanetworks/avd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
48 lines (44 loc) · 1.55 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
# 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: v2.4.0
hooks:
- id: trailing-whitespace
exclude: ansible_collections/arista/avd/molecule
- id: end-of-file-fixer
exclude_types: [jinja, text]
exclude: ansible_collections/arista/avd/molecule
- id: check-added-large-files
exclude: ansible_collections/arista/avd/molecule
- id: check-merge-conflict
exclude: ansible_collections/arista/avd/molecule
# - repo: https://github.com/pre-commit/pre-commit-hooks
# rev: v2.3.0
# hooks:
# - id: flake8
# - repo: https://github.com/pre-commit/mirrors-autopep8
# rev: 'v1.5.6' # Use the sha / tag you want to point at
# hooks:
# - id: autopep8
- repo: https://github.com/pycqa/pylint
rev: 'pylint-2.6.0'
hooks:
- id: pylint # Use pylintrc file in repository
name: Check for Linting error on Python files
description: This hook runs pylint.
types: [python]
args:
# Suppress duplicate code for modules header
- -d duplicate-code
- repo: https://github.com/adrienverge/yamllint.git
rev: 'v1.23.0'
hooks:
- id: yamllint
name: Check for Linting error on YAML files
description: This hook runs yamllint.
entry: yamllint
language: python
types: [file, yaml]
exclude: ansible_collections/arista/avd/molecule
args: [-c=.github/yamllintrc]