Repository navigation
Read test options from the environment and pass arguments through intact - #25
Merged
Merged
Conversation
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>
Collaborator
Author
|
I have found this format leads to fewer agent mistakes when trying to run things. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Recipes interpolated
{{args}}as text, so quoting was lost:just test -- -k "a or b"reached pytest as-k a or band collected nothing.Changes
*argsand forward them with"$@"underset positional-arguments, as intertidal-edna, resourcefull, and lasw-project do. The[arg]options and the_pytestand_typecheckhelpers are gone.--python,--lowest-direct, and--upgradebecome thePYTHON,LOWEST_DIRECT=true, andUPGRADE=trueenvironment variables, which CI already set.PYTHON=3.12 LOWEST_DIRECT=true just test -k tokenreplacesjust test --python 3.12 --lowest-direct -- -k token; no--is needed.just test,just typecheck, andjust integrationbare.Notes
A shell that already sets
PYTHONto an interpreter path would hand that path to the type checkers as--python-version.🤖 Generated with Claude Code