forked from complytime/complyctl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (28 loc) · 1.01 KB
/
.pre-commit-config.yaml
File metadata and controls
29 lines (28 loc) · 1.01 KB
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_stages: [pre-push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b #v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
exclude: "^internal/complytime/testdata/openscap/ssg-rhel-ds.xml$"
- repo: https://github.com/dnephin/pre-commit-golang
rev: fb24a639f7c938759fe56eeebbb7713b69d60494 #v0.5.1
hooks:
- id: go-fmt
#- id: go-imports
#- id: no-go-testing
#- id: golangci-lint
- id: go-unit-tests
- repo: local
hooks:
- id: check-spdx
name: Check and fix SPDX line in source files
entry: python ./scripts/check-and-fix-spdx.py
language: system
stages: [pre-commit]
files: \.(py|go|sh)$