Skip to content

fix(scripts): run ruff from repo root in regenerate_sdk.sh - #4

Closed
calvin-archastro wants to merge 1 commit into
mainfrom
fix/regenerate-sdk-cwd
Closed

fix(scripts): run ruff from repo root in regenerate_sdk.sh#4
calvin-archastro wants to merge 1 commit into
mainfrom
fix/regenerate-sdk-cwd

Conversation

@calvin-archastro

Copy link
Copy Markdown
Contributor

Summary

  • Wrap the ruff lint/format step in regenerate_sdk.sh in a subshell that cds to $REPO_ROOT so uv run discovers this repo's pyproject.toml even when the script is invoked from a different CWD.
  • Regenerate src/archastro/platform/__init__.py (content hash refresh only).

Test plan

  • Run ./scripts/regenerate_sdk.sh from outside the repo root and confirm ruff fixes/format apply successfully.
  • Run the script from the repo root and confirm behavior is unchanged.

🤖 Generated with Claude Code

Ensures `uv run` resolves this repo's pyproject.toml regardless of the
caller's working directory.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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