2023-11-13 09:33:28 -05:00
|
|
|
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
---
|
|
|
|
repos:
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
2024-03-14 07:09:49 -04:00
|
|
|
|
|
|
|
- id: unicode-prohibit
|
|
|
|
name: unicode-prohibit
|
|
|
|
entry: scripts/unicode-prohibit.sh
|
|
|
|
language: script
|
|
|
|
pass_filenames: true
|
|
|
|
description: Prohibit Unicode
|
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
- id: reuse
|
|
|
|
name: reuse
|
|
|
|
entry: reuse
|
|
|
|
args: [lint]
|
|
|
|
language: python
|
|
|
|
pass_filenames: false
|
|
|
|
description: Lint files to comply with the REUSE Specification
|
2024-03-14 07:09:49 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
- id: salt-lint
|
|
|
|
name: salt-lint
|
|
|
|
entry: scripts/salt-lint.sh
|
|
|
|
language: script
|
|
|
|
pass_filenames: true
|
|
|
|
description: Lint Salt files
|
2024-03-14 07:09:49 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
- id: shellcheck
|
|
|
|
name: shellcheck
|
|
|
|
entry: scripts/shell-lint.sh
|
|
|
|
language: script
|
|
|
|
pass_filenames: true
|
|
|
|
description: Lint Shellscripts
|
2024-03-14 07:09:49 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
- id: gitlint
|
|
|
|
name: gitlint
|
|
|
|
language: python
|
|
|
|
entry: gitlint
|
|
|
|
args: [--staged, --msg-filename]
|
|
|
|
stages: [commit-msg]
|
2024-06-13 07:28:24 -04:00
|
|
|
pass_filenames: true
|
2023-11-13 09:33:28 -05:00
|
|
|
description: Lint Git commits
|
2024-06-12 08:44:04 -04:00
|
|
|
|
2024-06-22 03:04:18 -04:00
|
|
|
- id: qubesbuilder-gen
|
|
|
|
name: qubesbuilder-gen
|
|
|
|
entry: scripts/qubesbuilder-gen.sh
|
|
|
|
args: [test]
|
2024-06-12 08:44:04 -04:00
|
|
|
language: script
|
2024-06-22 03:04:18 -04:00
|
|
|
pass_filenames: false
|
2024-06-12 08:44:04 -04:00
|
|
|
description: Check if .qubesbuilder is up to date
|
2024-06-21 11:00:06 -04:00
|
|
|
|
|
|
|
# TODO: generate temporary spec and compare against staged one.
|
|
|
|
# - id: spec-gen
|
|
|
|
# name: spec-gen
|
|
|
|
# language: script
|
|
|
|
# entry: scripts/spec-gen.sh test
|
|
|
|
# args: [test]
|
|
|
|
# # pass_filenames: true
|
|
|
|
# description: Check if RPM SPEC files are up to date
|