Update additional files for check-spdx hook

Signed-off-by: Marcus Burghardt <maburgha@redhat.com>
This commit is contained in:
Marcus Burghardt 2024-12-06 12:28:24 +01:00
parent d4688f5c1f
commit 929585fe9e
No known key found for this signature in database
GPG key ID: 7AD02C90E211DDFF
2 changed files with 8 additions and 0 deletions

View file

@ -61,6 +61,13 @@
types: [text]
stages: [pre-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0
- id: check-spdx
name: check SPDX line
description: checks for the presence of an SPDX-License-Identifier in the comments of source files.
entry: check-spdx
language: python
files: \.(py|js|java|c|cpp|go|sh|ps1)$
types: [text]
- id: pretty-format-json
name: pretty format json
description: sets a standard for formatting json files.

View file

@ -40,6 +40,7 @@ console_scripts =
check-json = pre_commit_hooks.check_json:main
check-merge-conflict = pre_commit_hooks.check_merge_conflict:main
check-shebang-scripts-are-executable = pre_commit_hooks.check_shebang_scripts_are_executable:main
check-spdx = pre_commit_hooks.check_spdx:main
check-symlinks = pre_commit_hooks.check_symlinks:main
check-toml = pre_commit_hooks.check_toml:main
check-vcs-permalinks = pre_commit_hooks.check_vcs_permalinks:main