Description
Description
Make the copied project scaffold (assets/workspace/) language-neutral by
removing the shipped Python package starter and guarding the Python task
recipes so they no-op on a repo with no pyproject.toml.
Problem Statement
The scaffold has always shipped a Python package starter — pyproject.toml,
src/template_project/, tests/test_example.py — plus uv/ruff/pytest recipes,
and a CI contract (just sync|precommit|test) that assumes a Python project.
Many vig-os/EXOMA consumers are not Python packages (Rust scitadel, the
TypeScript actions, nvd-mirror). For them the starter is wrong: they must
delete files and edit recipes, and — worse — their CI fails out of the box
because just test runs uv run pytest, which exits 5 ("no tests collected")
with no project.
Delivery modes (devcontainer|direnv|both|bare) control how the scaffold is
delivered, not what language — all four rsync the same Python-laden template.
The Python starter predates the capability-modules design (#884) and the flake
nix flake init -t template mechanism, which are the intended language axis.
Proposed Solution
- Delete the Python package starter from
assets/workspace/:
pyproject.toml,src/(src/template_project/),tests/. - Guard the Python recipes in
assets/workspace/justfile.projectthe same
waysyncalready is (@if [ -f pyproject.toml ]; then …; fi):lint,
format,test,test-cov. They then exit 0 with nopyproject.toml,
keeping both CI contracts (assets/workspace/.github/workflows/ci.ymland
assets/workspace-bare/.github/workflows/ci.yml) green on non-Python repos.
precommit(prek) needs no guard (ruff hooks match nothing → pass). assets/init-workspace.sh: drop thesrc/template_project→src/${SHORT_NAME}
rename and thetests/test_example.pyimport-rewrite. Keeppyproject.toml
inPRESERVE_FILES(the [BUG] install.sh --mode direnv --force overwrites populated consumer files (pyproject.toml, .devcontainer/) #738 "consumer owns its own pyproject" guarantee
still holds), and keepCI_CONTRACT_RECIPES+ the base-recipe re-append
(recipes still exist, just self-guarded).- Update tests (
test_install_script.py,test_image.py,test_integration.py,
tests/bats/init-workspace.bats),docs/MIGRATION.md, the generated README
template, andCHANGELOG.md.
Investigated and cleared: the image build does not break (the scaffold .venv
is prebaked with python -m venv, not uv sync; it never reads pyproject.toml),
and just sync-workspace/sync_manifest.py will not re-add the Python files
(it copies only files listed in scripts/manifest.toml, which lists none of them).
Alternatives Considered
- Multiple bootstrap templates (
--template python|rust|ts): rejected — it
duplicates the standards layer N times and reintroduces exactly the drift the
nix/hooks.nixSSoT work removed. - Keep status quo, document the deletion steps: rejected — leaves broken CI
on adoption for every non-Python repo.
Impact
- Who benefits: every non-Python consumer (clean scaffold, green CI on
adoption); Python consumers restore the starter via the opt-in#python
flake template (companion issue). - Compatibility: backward-compatible /
semver:minor. Existing consumers
keep their own preservedpyproject.toml(preservation is generic). Behavior
change: a fresh scaffold no longer contains a Python package, and
just lint/format/testno-op without apyproject.toml. - Ships in the same release as the companion
#pythontemplate so Python
users always have a restore path.
Changelog Category
Changed (also a Removed entry for the dropped starter).
Activity
c-vigo commentedon Jul 8, 2026
Companion: #930 (opt-in Python starter flake template). Both should land in the same release so Python consumers always have a restore path.
test(workspace): expect language-neutral scaffold, no Python starter
feat(workspace): make the copied scaffold language-neutral
test(workspace): update image tests for language-neutral scaffold
docs(workspace): document the language-neutral scaffold
test(workspace): just test no-ops on a language-neutral base scaffold
test(workspace): scaffold ships no src/ or tests/ directory
feat(workspace): language-neutral scaffold + opt-in Python flake temp…
c-vigo commentedon Jul 8, 2026
Done — merged into
devvia #933 (mergebcb08633). The copied scaffold is now language-neutral: the Python package starter (pyproject.toml,src/,tests/) is gone andjust lint/format/test/test-covno-op (exit 0) without apyproject.toml, so non-Python repos scaffold clean and their CI/releasejust teststeps stay green. Python is opt-in via #930. Ships in 0.5.chore: release 0.5.0 (#938)