Skip to content

Commit 929585f

Browse files
Update additional files for check-spdx hook
Signed-off-by: Marcus Burghardt <[email protected]>
1 parent d4688f5 commit 929585f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@
6161
types: [text]
6262
stages: [pre-commit, pre-push, manual]
6363
minimum_pre_commit_version: 3.2.0
64+
- id: check-spdx
65+
name: check SPDX line
66+
description: checks for the presence of an SPDX-License-Identifier in the comments of source files.
67+
entry: check-spdx
68+
language: python
69+
files: \.(py|js|java|c|cpp|go|sh|ps1)$
70+
types: [text]
6471
- id: pretty-format-json
6572
name: pretty format json
6673
description: sets a standard for formatting json files.

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ console_scripts =
4040
check-json = pre_commit_hooks.check_json:main
4141
check-merge-conflict = pre_commit_hooks.check_merge_conflict:main
4242
check-shebang-scripts-are-executable = pre_commit_hooks.check_shebang_scripts_are_executable:main
43+
check-spdx = pre_commit_hooks.check_spdx:main
4344
check-symlinks = pre_commit_hooks.check_symlinks:main
4445
check-toml = pre_commit_hooks.check_toml:main
4546
check-vcs-permalinks = pre_commit_hooks.check_vcs_permalinks:main

0 commit comments

Comments
 (0)