qusal/.pre-commit-config.yaml

53 lines
1.3 KiB
YAML
Raw Normal View History

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:
- 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
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
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
2023-11-13 09:33:28 -05:00
- id: gitlint
name: gitlint
language: python
entry: gitlint
args: [--staged, --msg-filename]
stages: [commit-msg]
pass_filenames: true
2023-11-13 09:33:28 -05:00
description: Lint Git commits
- id: qubesbuilder
name: qubesbuilder
entry: scripts/qubesbuilder-gen.sh test
language: script
description: Check if .qubesbuilder is up to date