pcmt/.pre-commit-config.yaml

35 lines
941 B
YAML
Raw Permalink Normal View History

# Copyright 2023 wanderer <a_mirre at utb dot cz>
# SPDX-License-Identifier: GPL-3.0-or-later
---
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- repo: meta
hooks:
- id: check-hooks-apply
- repo: https://github.com/TekWizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-mod-tidy
- id: go-test-mod
- id: go-build-mod
2023-04-19 03:01:47 +02:00
- id: golangci-lint-mod
- repo: https://git.dotya.ml/wanderer/hadolint-pre-commit
rev: v0.0.1
hooks:
- id: hadolint-container
2023-05-20 20:15:57 +02:00
- repo: local
hooks:
- id: addlicense
2023-05-21 18:54:28 +02:00
name: addlicense -check
2023-05-20 20:15:57 +02:00
entry: >
go run github.com/google/addlicense@v1.1.1 -check -v
pass_filenames: true
types_or: ["go", "yaml", "javascript", "dockerfile"]
exclude: "^(devenv.yaml|assets/.*|templates/.*)$"
language: system