Skip to content

Correct the uv script shebang in the standard and scripts - #292

Merged
leynos merged 1 commit into
mainfrom
fix-uv-script-shebang
Jul 18, 2026
Merged

Correct the uv script shebang in the standard and scripts#292
leynos merged 1 commit into
mainfrom
fix-uv-script-shebang

Conversation

@leynos

@leynos leynos commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

This branch corrects the uv script shebang prescribed by docs/scripting-standards.md and used by scripts/typos_rollout_check.py. The previous form, #!/usr/bin/env -S uv run python, executes the interpreter directly and ignores the PEP 723 metadata block, so a directly invoked script fails at import time wherever its dependencies are not preinstalled — verified empirically during the #291 review round. The standard now prescribes #!/usr/bin/env -S uv run --script and explains why.

Validation

`#!/usr/bin/env -S uv run python` executes the interpreter directly and
ignores the PEP 723 metadata block, so a directly invoked script fails
at import time on machines without its dependencies preinstalled
(verified empirically during the review of #291). Prescribe
`#!/usr/bin/env -S uv run --script` in the scripting standard, explain
why, and update `scripts/typos_rollout_check.py` to match.
@leynos
leynos enabled auto-merge (squash) July 18, 2026 10:58

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @leynos, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 46 minutes

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 5185e94f-a420-4e26-8ad2-af2dfa1235dc

📥 Commits

Reviewing files that changed from the base of the PR and between 0f0eb9b and 90fc4b4.

📒 Files selected for processing (2)
  • docs/scripting-standards.md
  • scripts/typos_rollout_check.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-uv-script-shebang

Comment @coderabbitai help to get the list of available commands.

codescene-access[bot]

This comment was marked as outdated.

@codescene-access codescene-access Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No quality gates enabled for this code.

@leynos
leynos merged commit 692f654 into main Jul 18, 2026
9 checks passed
@leynos
leynos deleted the fix-uv-script-shebang branch July 18, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant