Part of #213.
Problem
Two complementary pre-commit hooks fail because of wrong Unix executable bits:
check-executables-have-shebangs — Failed
These .md files are marked executable (100755) but have no shebang. Docs should not be executable:
plugins/sagemaker-ai/skills/hyperpod-issue-report/SKILL.md
plugins/sagemaker-ai/skills/hyperpod-issue-report/references/collection-details.md
plugins/sagemaker-ai/skills/hyperpod-issue-report/references/troubleshooting.md
plugins/sagemaker-ai/skills/hyperpod-ssm/SKILL.md
plugins/sagemaker-ai/skills/hyperpod-ssm/references/troubleshooting.md
plugins/sagemaker-ai/skills/hyperpod-version-checker/SKILL.md
Fix: git update-index --chmod=-x <file> (or chmod -x).
check-shebang-scripts-are-executable — Failed
These .py files have a shebang but are not marked executable:
tools/generate_codex_manifests.py
plugins/sagemaker-ai/skills/dataset-transformation/scripts/transformation_tools.py
Fix: git update-index --chmod=+x <file> (or remove the shebang if not meant to be run directly).
Reproduce
mise exec -- pre-commit run check-executables-have-shebangs check-shebang-scripts-are-executable --all-files
Filed with assistance from Claude Code while implementing #211.
Part of #213.
Problem
Two complementary pre-commit hooks fail because of wrong Unix executable bits:
check-executables-have-shebangs— FailedThese
.mdfiles are marked executable (100755) but have no shebang. Docs should not be executable:Fix:
git update-index --chmod=-x <file>(orchmod -x).check-shebang-scripts-are-executable— FailedThese
.pyfiles have a shebang but are not marked executable:Fix:
git update-index --chmod=+x <file>(or remove the shebang if not meant to be run directly).Reproduce
mise exec -- pre-commit run check-executables-have-shebangs check-shebang-scripts-are-executable --all-filesFiled with assistance from Claude Code while implementing #211.