blob: fb93a960110e4ccb540289f24079a2e3e81f2811 [file] [log] [blame]
Joey Armstrongdaa1f0a2024-04-03 18:07:59 -04001---
2
3# See https://pre-commit.com for more information
4# See https://pre-commit.com/hooks.html for more hooks
5repos:
6- repo: https://github.com/pre-commit/pre-commit-hooks
7 rev: v3.2.0
8 hooks:
9 - id: trailing-whitespace
10 - id: end-of-file-fixer
11 - id: check-yaml
12 - id: check-added-large-files
13- repo: https://github.com/psf/black
14 rev: 22.10.0
15 hooks:
16 - id: black
17- repo: https://github.com/koalaman/shellcheck-precommit
18 rev: v0.10.0
19 hooks:
20 - id: shellcheck
21- repo: https://github.com/adrienverge/yamllint.git
22 rev: v1.35.1
23 hooks:
24 - id: yamllint
25
26# -------------------------------------------------------------------
27# https://docs.python.org/3/library/re.html#regular-expression-syntax
28# -------------------------------------------------------------------
29exclude: |
30 (?x)^(
31 ^jjb/.* |
32 ^jenkins-scripts/.* |
33 ^makefiles/.* |
34 ^lf/.* |
35 ^lf-ansible/.* |
36 ^packer/.* |
37 ^test/.* |
38 ^.venv/.* |
39 ^jjb/pipeline/voltha/voltha-physical-soak-dt-tests.groovy
40 )$
41
42
43# -----------------------------------------------------------------------
44# declare -a args=()
45# args+=('--color=always')
46#
47# if true; then
48# args+=('--all-files')
49# else
50# args+=('--files' 'jjb/pipeline/voltha/voltha-physical-soak-dt-tests.groovy')
51# fi
52#
53# freeze
54# args+=('--bleeding-edge')
55# args+=('--freeze')
56#
57# args+=('--show-diff-on-failure')
58#
59# pre-commit run "${args[@]}" &1 | tee log
60# -----------------------------------------------------------------------
61
62# [EOF]