Skip to content

Fix Python __main__.py entry#1741

Merged
j178 merged 1 commit intomasterfrom
python
Mar 4, 2026
Merged

Fix Python __main__.py entry#1741
j178 merged 1 commit intomasterfrom
python

Conversation

@j178
Copy link
Owner

@j178 j178 commented Mar 4, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 4, 2026 02:49
@j178 j178 added the bug Something isn't working label Mar 4, 2026
@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.46%. Comparing base (25f37e5) to head (d61d183).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1741      +/-   ##
==========================================
- Coverage   91.63%   91.46%   -0.18%     
==========================================
  Files          97       97              
  Lines       19241    19258      +17     
==========================================
- Hits        17632    17614      -18     
- Misses       1609     1644      +35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

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

Adjusts the Python shim (python -m prek) and binary discovery helper used to locate and run the Rust prek executable.

Changes:

  • Updates python/prek/__main__.py to simplify execution on Windows (and remove unused imports).
  • Changes _find_prek.py to de-duplicate candidate script locations using a set.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
python/prek/_find_prek.py Uses a set for de-duplication of candidate script directories during binary lookup.
python/prek/main.py Simplifies Windows execution path and removes unused imports.

@j178 j178 merged commit 9aeb94e into master Mar 4, 2026
48 of 49 checks passed
@j178 j178 deleted the python branch March 4, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants