CI/Skills: add Python lint and test harness for skills scripts (#24246)

* CI: add skills Python checks job

* Chore: add Python lint and test pre-commit hooks

* Tests: fix skill-creator package test import path

* Chore: add Python tooling config for skills scripts

* CI: run all skills Python tests

* Chore: run all skills Python tests in pre-commit

* Chore: enable pytest discovery for all skills tests

* Changelog: note skills Python quality harness
This commit is contained in:
Vincent Koc
2026-02-23 01:52:00 -05:00
committed by GitHub
parent de96f5fed2
commit 76dabd5214
5 changed files with 60 additions and 0 deletions

View File

@@ -10,6 +10,10 @@ import zipfile
from pathlib import Path
from unittest import TestCase, main
SCRIPT_DIR = Path(__file__).resolve().parent
if str(SCRIPT_DIR) not in sys.path:
sys.path.insert(0, str(SCRIPT_DIR))
fake_quick_validate = types.ModuleType("quick_validate")
fake_quick_validate.validate_skill = lambda _path: (True, "Skill is valid!")