From dc60afca37eaaa8139b03d4c16aaf3cea1138ad9 Mon Sep 17 00:00:00 2001 From: autoMBD Date: Tue, 6 Jan 2026 21:26:32 +0800 Subject: [PATCH 1/2] fix: remove markdown artifacts and correct script name in docstring - Remove erroneous markdown code fence and shebang from file start - Update usage example to reference correct filename (test_check_spdx.py) --- tools/test_check_spdx.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/test_check_spdx.py b/tools/test_check_spdx.py index 5106a9c..215edfc 100644 --- a/tools/test_check_spdx.py +++ b/tools/test_check_spdx.py @@ -1,9 +1,7 @@ -```python -#!/usr/bin/env python3 """ Tool: Check if .m files (extensible) in the repository contain SPDX-License-Identifier or explicit License field. Usage (local/CI): - python3 tools/check_spdx.py [path] + python3 tools/test_check_spdx.py [path] If missing is detected, exit with non-zero status code. """ import os From fbaa67ac9842fea1caeff0152d459c937fef5117 Mon Sep 17 00:00:00 2001 From: autoMBD Date: Tue, 6 Jan 2026 21:30:11 +0800 Subject: [PATCH 2/2] ci: rename SPDX check script to test_check_spdx.py Update the GitHub workflow to call the renamed SPDX license header check script from check_spdx.py to test_check_spdx.py. --- .github/workflows/github_workflows_ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github_workflows_ci.yml b/.github/workflows/github_workflows_ci.yml index 386870b..a919df7 100644 --- a/.github/workflows/github_workflows_ci.yml +++ b/.github/workflows/github_workflows_ci.yml @@ -20,7 +20,7 @@ jobs: - name: SPDX / license header check (.m files) run: | - python3 tools/check_spdx.py || exit $? + python3 tools/test_check_spdx.py || exit $? - name: Detect large files (>10MB) run: |