S-CORE repositories run the tools listed below through one interface:
.devcontainer/run-tool. Use it inside and outside the DevContainer so local
development, hooks, and CI select the same pinned version.
$ .devcontainer/run-tool shellcheck scripts/example.sh
$ .devcontainer/run-tool ruff check .Everything after the command is passed to that command. In the DevContainer,
it runs the installed executable. Outside the container, it uses the local tool
when available or Bazel otherwise (--strict forces Bazel). The first
host-side Bazel invocation may require network access to download the binary.
All tools from tool providers (with "provider": "python") and lockfiles are available.
See those files for the tools descriptions and their installation details.
Pass --help through the runner to see a command's own documentation:
$ .devcontainer/run-tool shellcheck --helpCopy the maintained run-tool to .devcontainer/run-tool in the
consumer repository and make it executable.
Pin that release as a module dependency in the repository's MODULE.bazel:
bazel_dep(name = "score_devcontainer", version = "<version>")Replace <version> with the S-CORE DevContainer release used by the
repository. Use the same release for the Bazel module and the DevContainer
image; otherwise the command set or versions can differ.
Outside the container, a bazel executable must be on PATH. Install Bazel
or Bazelisk as bazel before the first host-side invocation; it bootstraps
access to the catalog. The Bazel targets bring their own pinned tool runtime;
Python is not required on the host to run Python-based commands.
Implementation and maintenance details are in internal/README.md.