Skip to content

Fix issue where setup script can close the user's terminal#307

Open
zaz wants to merge 12 commits intogeometric-intelligence:mainfrom
zaz:fix-close-terminal
Open

Fix issue where setup script can close the user's terminal#307
zaz wants to merge 12 commits intogeometric-intelligence:mainfrom
zaz:fix-close-terminal

Conversation

@zaz
Copy link
Copy Markdown

@zaz zaz commented Apr 11, 2026

Checklist

  • My pull request has a clear and explanatory title.
  • My pull request passes the Linting test.
  • I added appropriate unit tests and I made sure the code passes all unit tests. (refer to comment below)
  • My PR follows PEP8 guidelines. (refer to comment below)
  • My code is properly documented, using numpy docs conventions, and I made sure the documentation renders properly.
  • I linked to issues and PRs that are relevant to this PR.

PR series: #303 307 #308 #309

This PR is only for commits 193bac1..02bcc2c. It is number 2 in a series of staged PRs, building upon #303 by adding commits 193bac1..02bcc2c; if #303 is rejected, these commits can be cherry-picked.

Description

Commits:

  1. Simply use return instead of exit; the exact same pattern that is used elsewhere in the file. Simple, one-line change.
  2. Add a test to prevent this from happening again. Maybe that's overkill.

Issue

Fixes #305.


Note

Low Risk
Low risk: changes are primarily whitespace/EOL normalization, minor wording fixes, and adding pre-commit hooks; no functional runtime logic is altered beyond developer tooling and tests/docs.

Overview
Normalizes formatting across the repo by fixing missing end-of-file newlines and trailing whitespace in many YAML configs, docs, scripts, and tests.

Strengthens contributor tooling by expanding .pre-commit-config.yaml with standard hygiene checks (EOF fixer, trailing whitespace, AST/JSON/symlink checks) and aligning CI/workflow/config files accordingly (e.g., .gitignore for uv.lock, minor workflow/codecov YAML cleanup).

Reviewed by Cursor Bugbot for commit 193bac1. Bugbot is set up for automated code reviews on this repo. Configure here.

zaz and others added 12 commits April 10, 2026 15:56
Run `pre-commit run --all-files`.
Fixes linter warning: numpydoc-validation flagged mismatched
underline lengths in docstring section headers.
Fixes linter warning: numpydoc-validation flagged GL08 (missing
docstring) on 4 modules.
Run `pre-commit run --all-files`.
After adding these, running `pre-commit run --all-files` indicates
no existing issues.
Run `codespell --write-changes`, then manually correct.
Fix grammar using Claude Haiku 4.5, then manually correct.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Use `return 1` instead of `exit 1` so that sourcing the script
with an invalid platform prints the error without killing the shell.

Fixes geometric-intelligence#305
Verify that `source uv_env_setup.sh INVALID` does not kill the
user's shell (uses return instead of exit).
@cursor
Copy link
Copy Markdown

cursor bot commented Apr 11, 2026

You have used all of your free Bugbot PR reviews.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

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.

source uv_env_setup.sh FAIL closes the user's terminal

1 participant