From 929585fe9e4d7d83af4f81e5c853273710550c7d Mon Sep 17 00:00:00 2001 From: Marcus Burghardt Date: Fri, 6 Dec 2024 12:28:24 +0100 Subject: [PATCH] Update additional files for check-spdx hook Signed-off-by: Marcus Burghardt --- .pre-commit-hooks.yaml | 7 +++++++ setup.cfg | 1 + 2 files changed, 8 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index b71169b..fbc1dd7 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -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. diff --git a/setup.cfg b/setup.cfg index 3b7e5ee..2e1eeb4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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