Joey Armstrong | daa1f0a | 2024-04-03 18:07:59 -0400 | [diff] [blame] | 1 | --- |
| 2 | |
| 3 | # See https://pre-commit.com for more information |
| 4 | # See https://pre-commit.com/hooks.html for more hooks |
| 5 | repos: |
Eric Ball | 9aea61d | 2024-09-09 16:24:47 -0700 | [diff] [blame] | 6 | - repo: https://github.com/pre-commit/pre-commit-hooks |
Joey Armstrong | daa1f0a | 2024-04-03 18:07:59 -0400 | [diff] [blame] | 7 | rev: v3.2.0 |
| 8 | hooks: |
Eric Ball | 9aea61d | 2024-09-09 16:24:47 -0700 | [diff] [blame] | 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 |
Joey Armstrong | daa1f0a | 2024-04-03 18:07:59 -0400 | [diff] [blame] | 14 | rev: 22.10.0 |
| 15 | hooks: |
Eric Ball | 9aea61d | 2024-09-09 16:24:47 -0700 | [diff] [blame] | 16 | - id: black |
| 17 | - repo: https://github.com/koalaman/shellcheck-precommit |
Joey Armstrong | daa1f0a | 2024-04-03 18:07:59 -0400 | [diff] [blame] | 18 | rev: v0.10.0 |
| 19 | hooks: |
Eric Ball | 9aea61d | 2024-09-09 16:24:47 -0700 | [diff] [blame] | 20 | - id: shellcheck |
| 21 | - repo: https://github.com/adrienverge/yamllint.git |
Joey Armstrong | daa1f0a | 2024-04-03 18:07:59 -0400 | [diff] [blame] | 22 | rev: v1.35.1 |
| 23 | hooks: |
Eric Ball | 9aea61d | 2024-09-09 16:24:47 -0700 | [diff] [blame] | 24 | - id: yamllint |
Joey Armstrong | daa1f0a | 2024-04-03 18:07:59 -0400 | [diff] [blame] | 25 | |
| 26 | # ------------------------------------------------------------------- |
| 27 | # https://docs.python.org/3/library/re.html#regular-expression-syntax |
| 28 | # ------------------------------------------------------------------- |
| 29 | exclude: | |
| 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 | )$ |