blob: 6798de4711bc6077d49f5f36ab5d1b4137691cb2 [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:
Eric Ball9aea61d2024-09-09 16:24:47 -07006 - repo: https://github.com/pre-commit/pre-commit-hooks
Joey Armstrongdaa1f0a2024-04-03 18:07:59 -04007 rev: v3.2.0
8 hooks:
Eric Ball9aea61d2024-09-09 16:24:47 -07009 - 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
Joey Armstrongdaa1f0a2024-04-03 18:07:59 -040014 rev: 22.10.0
15 hooks:
Eric Ball9aea61d2024-09-09 16:24:47 -070016 - id: black
17 - repo: https://github.com/koalaman/shellcheck-precommit
Joey Armstrongdaa1f0a2024-04-03 18:07:59 -040018 rev: v0.10.0
19 hooks:
Eric Ball9aea61d2024-09-09 16:24:47 -070020 - id: shellcheck
21 - repo: https://github.com/adrienverge/yamllint.git
Joey Armstrongdaa1f0a2024-04-03 18:07:59 -040022 rev: v1.35.1
23 hooks:
Eric Ball9aea61d2024-09-09 16:24:47 -070024 - id: yamllint
Joey Armstrongdaa1f0a2024-04-03 18:07:59 -040025
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 )$