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