-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
45 lines (42 loc) · 1.54 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
# Copyright (c) 2021-2024 VMware, Inc. All rights reserved.
---
minimum_pre_commit_version: 1.15.2
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-merge-conflict
description: Check for files that contain merge conflict strings.
language_version: python3
- id: trailing-whitespace
description: Trims trailing whitespace.
args: [--markdown-linebreak-ext=md]
language_version: python3
- id: mixed-line-ending
description: Replaces or checks mixed line ending.
args: [--fix=lf]
language_version: python3
- id: fix-byte-order-marker
description: Removes UTF-8 BOM if present, generally a Windows problem.
- id: end-of-file-fixer
description: Makes sure files end in a newline and only a newline.
language_version: python3
exclude: '^README* | *.json$'
- id: check-ast
description: Simply check whether files parse as valid python.
language_version: python3
- id: check-yaml
- id: check-json
- repo: local
hooks:
- id: generate-actions-workflow
name: Generate Github Actions Workflow
entry: .github/workflows/templates/generate.py
pass_filenames: false
files: '^.github/workflows/.*$'
language: script
- id: shellcheck
name: Run ShellCheck against svtminion.sh
entry: koalaman/shellcheck-alpine:v0.7.0 shellcheck -s bash -f tty
files: 'svtminion\.sh'
language: docker_image