forked from kubeflow/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.pre-commit-config.yaml
61 lines (59 loc) · 1.84 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
repos:
# other fast helpful checks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-json
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: ^manifests/gcp_marketplace/test/*
- id: debug-statements
- id: check-merge-conflict
- id: name-tests-test
- id: double-quote-string-fixer
- id: no-commit-to-branch
args: [--branch, master]
# required formatting jobs (run these last)
# add comment "noqa" to ignore an import that should not be removed
# (e.g., for an import with desired side-effects)
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.1
hooks:
- id: pycln
name: pycln
language: python
entry: pycln --all
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
name: isort
entry: isort --profile google
- repo: https://github.com/pre-commit/mirrors-yapf
rev: "v0.32.0"
hooks:
- id: yapf
- repo: https://github.com/pycqa/docformatter
rev: v1.4
hooks:
- id: docformatter
name: docformatter
language: python
entry: docformatter -i -r
# docformatter messes up certain sphinx link formatting.
# The kubernetes_platform/python docstrings are heavy on links, so ignore.
exclude: (sdk/python/kfp/compiler/compiler_test.py|kubernetes_platform/python/)
# Golang pre-submit hooks
- repo: https://github.com/golangci/golangci-lint
rev: v1.52.2
hooks:
- id: golangci-lint
name: golangci-lint
description: Fast linters runner for Go.
entry: golangci-lint run --new-from-rev HEAD --fix
types: [go]
language: golang
require_serial: true
pass_filenames: false