Skip to content

fix(cli)!: keep the invoked Python environment - #18

Merged
zigai merged 2 commits into
mainfrom
explicit-environment
Oct 15, 2026
Merged

zigai merged 2 commits into
mainfrom
explicit-environment

Conversation

@zigai

@zigai zigai commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Keep Rattle in the invoked Python environment instead of switching to a project-local executable. Rule-import errors identify missing modules or dependencies and the active interpreter.

Breaking Changes

Select the Python environment containing Rattle and its custom-rule dependencies explicitly. In a uv project that declares those dependencies, run:

uv run python -m rattle check .

The same environment requirement applies to editor integrations and pre-commit hooks.

Verification

  • just test -- -q exercises interpreter selection and rule-import failures on Python 3.11 through 3.15
  • Installed-wheel checks keep the invoked installation when a competing project executable is present
  • uv run python -m rattle check . reports a rule violation from a scratch project's installed Rattle

@zigai
zigai changed the base branch from cli-check to main October 15, 2026 21:53
@zigai
zigai merged commit b6284a5 into main Oct 15, 2026
34 checks passed
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