-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
30 lines (30 loc) · 911 Bytes
/
.pre-commit-config.yaml
File metadata and controls
30 lines (30 loc) · 911 Bytes
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
# The config for the local pre-commit steps
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-added-large-files
args: [--maxkb=1024, --enforce-all]
- id: check-shebang-scripts-are-executable
- id: mixed-line-ending
args: [--fix, lf]
- repo: https://github.com/google/yapf
rev: v0.40.2
hooks:
- id: yapf
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
types_or: [yaml]
- repo: local
hooks:
- id: yaml-extension-check
name: yaml extension check
description: Checks if all yaml files have the extension '.yaml'
entry: All Yaml files should have the *.yaml extension.
language: fail
files: .*\.(yml)