Skip to content

Read test options from the environment and pass arguments through intact - #25

Merged
chrisjkuch merged 2 commits into
mainfrom
just-env-options
Nov 24, 2026
Merged

chrisjkuch merged 2 commits into
mainfrom
just-env-options

Conversation

@chrisjkuch

@chrisjkuch chrisjkuch commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Recipes interpolated {{args}} as text, so quoting was lost: just test -- -k "a or b" reached pytest as -k a or b and collected nothing.

Changes

  • Recipes that pass arguments through take only *args and forward them with "$@" under set positional-arguments, as intertidal-edna, resourcefull, and lasw-project do. The [arg] options and the _pytest and _typecheck helpers are gone.
  • Breaking for local use: --python, --lowest-direct, and --upgrade become the PYTHON, LOWEST_DIRECT=true, and UPGRADE=true environment variables, which CI already set. PYTHON=3.12 LOWEST_DIRECT=true just test -k token replaces just test --python 3.12 --lowest-direct -- -k token; no -- is needed.
  • CI calls just test, just typecheck, and just integration bare.
  • AGENTS.md and CONTRIBUTING.md describe the new usage.

Notes

A shell that already sets PYTHON to an interpreter path would hand that path to the type checkers as --python-version.

🤖 Generated with Claude Code

chrisjkuch and others added 2 commits November 24, 2026 10:00
Recipes interpolated {{args}} as text, so quoting was lost: `just test
-- -k "a or b"` reached pytest as `-k a or b`. Recipes now take only
their pass-through arguments and forward them with "$@", and read
PYTHON, LOWEST_DIRECT, and UPGRADE from the environment, which CI
already sets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chrisjkuch

Copy link
Copy Markdown
Collaborator Author

I have found this format leads to fewer agent mistakes when trying to run things.

@chrisjkuch
chrisjkuch merged commit cabd5e6 into main Nov 24, 2026
8 checks passed
@chrisjkuch
chrisjkuch deleted the just-env-options branch November 24, 2026 10:15
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