Skip to content

pre-commit: incorrect executable bits (6 .md marked +x; 2 .py scripts missing +x) #215

Description

@scottschreckengaust

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions