-
Notifications
You must be signed in to change notification settings - Fork 19
/
.pre-commit-config.yaml
59 lines (56 loc) · 1.28 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
# SPDX-FileCopyrightText: 2024 SUSE LLC
#
# SPDX-License-Identifier: Apache-2.0
#
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/golangci/golangci-lint
rev: v1.59.1
hooks:
- id: golangci-lint
fail_fast: true
stages:
- pre-push
- repo: https://github.com/fsfe/reuse-tool
rev: v4.0.3
hooks:
- id: reuse
- repo: https://github.com/cbosdo/gettext-go-lint
rev: gettext-go-lint-0.1.1-0
hooks:
- id: lint
args:
- --keyword=L,NL,PL
- repo: local
hooks:
- id: check-localizable
name: Check localizable strings
entry: ./check_localizable
files: '.*\.go'
language: script
- id: build
name: Build
fail_fast: true
pass_filenames: false
entry: ./pre-commit-build.sh
language: script
stages:
- pre-push
- id: build-all-tags
name: Build with all tags
fail_fast: true
pass_filenames: false
entry: ./pre-commit-build.sh
language: script
args:
- -tags=nok8s,ptf
stages:
- pre-push