Repository navigation
Conversation
Use explicit Python hook entries and remove Unix-only shebangs for Windows compatibility. Assisted-by: GitHub Copilot:MAI Code 2 Flash
Use the system language and explicit Python entry for hooks so try-repo and consumer installs do not require a Python package. Remove executable modes that conflict with Ruff when scripts have no shebang. Assisted-by: GitHub Copilot:MAI Code 2 Flash
Assert scripts are not executable on platforms that retain POSIX mode bits now that they intentionally omit shebangs. Assisted-by: GitHub Copilot:MAI Code 2 Flash
ericpre
marked this pull request as ready for review
November 22, 2026 11:03
ericpre
force-pushed
the
remove_python_script_shebang
branch
from
November 22, 2026 18:52
0a9830d to
fad6d80
Compare
Keep compliance.yml as the sole reusable implementation workflow, add an opt-in policy update job, and add a thin daily caller with a fixed draft branch. Remove AI policy pre-commit hook Assisted-by: GitHub Copilot:MAI Code 2 Flash
ericpre
force-pushed
the
remove_python_script_shebang
branch
from
November 22, 2026 19:05
fad6d80 to
82a1442
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the change
Make the shared Python tooling work consistently across Unix and Windows by launching hooks explicitly through Python, removing Unix-only shebang assumptions, and aligning executable-mode tests and Ruff checks.
Remove the check-agents-policy pre-commit hook. Instead, add an opt-in ai-policy-update job to the existing compliance.yml reusable workflow to create a pull request that update the policy automatically. A thin daily caller runs at 17 3 * * *, refreshes AGENTS.md from AI-POLICY.md, and creates or updates a ready-to-review pull request on a fixed ai-policy-update branch.
Documentation and workflow tests cover the reusable compliance and scheduling behavior.
AI-assisted contribution?
Progress of the PR