Skip to content

SYS-8273 confirm real python is being used instead of microsoft store python#36

Merged
mmaharjan-ccdc merged 5 commits into
mainfrom
SYS-8273-fix-windows-commit
May 1, 2026
Merged

SYS-8273 confirm real python is being used instead of microsoft store python#36
mmaharjan-ccdc merged 5 commits into
mainfrom
SYS-8273-fix-windows-commit

Conversation

@mmaharjan-ccdc
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the git hook bash wrappers to more reliably select a runnable Python 3 interpreter (particularly on Windows, where the Microsoft Store “python” alias can interfere), before delegating to the corresponding *.py hook implementation.

Changes:

  • Added an is_python3 helper to validate that a discovered interpreter is runnable and is Python 3.
  • Updated interpreter selection logic to validate python3/python via is_python3.
  • Added a Windows fallback to use the py -3 launcher when available.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
main/pre-merge-commit Adds Python 3 validation and Windows py -3 fallback before invoking pre-merge-commit.py.
main/pre-commit Adds Python 3 validation and Windows py -3 fallback before invoking pre-commit.py.
main/commit-msg Adds Python 3 validation and Windows py -3 fallback before invoking commit-msg.py.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread main/pre-merge-commit Outdated
Comment thread main/pre-commit Outdated
Comment thread main/commit-msg Outdated
@mmaharjan-ccdc mmaharjan-ccdc merged commit 2ca7d04 into main May 1, 2026
6 checks passed
@mmaharjan-ccdc mmaharjan-ccdc deleted the SYS-8273-fix-windows-commit branch May 1, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants