Outside CI, HERMES_PYTHON is often inherited from a wrapped hermes (the TUI
sets it for its children) and names a release venv without the dev tools.
scripts/hermes-python ran that interpreter for any unactivated shell, so
just check, just fix and the lefthook ruff hook could run on it instead of
the checkout's environment. The shortcut now also needs
GITHUB_ACTIONS=true, the only caller the header names.
Co-authored-by: Bear Huddleston <196404565+BearHuddleston@users.noreply.github.com>
setup-pm installs the just pm/lock.json pins (python, node and all
toolchains) and forwards just-version and just-path. Three workflows then call
recipes instead of spelling the command out:
- lint.yml: each guard step runs `just check --only <name>`, so the guard list
lives once, in scripts/check. Adding a guard there and forgetting lint.yml
no longer leaves CI running a different set. The ratchet step is
`just check --only health --base HEAD^1`.
- tests.yml: the sliced full-suite step is `just test-all`.
- js-tests.yml: the parallel workspace checks are `just check-js-ci`.
Python recipes run through scripts/hermes-python: on a runner it uses the
interpreter setup-pm exported as HERMES_PYTHON (as run_tests.sh does), so a
recipe never re-runs setup in CI. Elsewhere it goes through run-in-hermes-env.