chore(template): rebuild from templates 57e7024 #2
Loading…
Reference in a new issue
No description provided.
Delete branch "template-rebuild"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Full template rebuild against
templates@57e7024(basepython, no variants).Every template-owned file was deleted and re-applied in layer order. Four files changed:
Makefile— newcleantarget (build/venv/cache artifacts plus a__pycache__sweep), added to.PHONY.cleanis now part of the shared-layer target contract.pyproject.toml— replaced from the baseline; see the two divergences below.uv.lock— regenerated last, after every layer landed..coveragerc.toml— see below.The real tests (
cli_test.py,sort_keys_test.py,smoke_test.py) were kept and no starter test was applied;smoke_test.pyhere is a genuine CLI test, not the template's starter. Both workflows came back byte-identical. No placeholders survive.Divergences
1.
[project.scripts]entry point — preserved, not substituted to the template's convention.The template ships
"<project-name>" = "<package>:main". Substituting that literally yieldslocal_tools:main, butsrc/local_tools/__init__.pyexports only__version__— there is nomainat package root. The real target is the typer app atlocal_tools.main:app, so that is what the rebuild kept. A literal substitution would have shipped a broken console script.2.
.coveragerc.toml— the project'somitwas dropped, per the baseline-stands rule.The displaced file carried:
That reads as a legit patch rather than a config hack — it describes a real property of the project (a
__main__.pyshim that genuinely cannot be exercised in-process by pytest) rather than concealing untested code. It is reported here rather than reapplied; restoring it is your call.It is not load-bearing for the gate: with the omit gone,
__main__.pyreports 0% and total coverage is 93.30% against afail_underof 80.3. Dev-group version floors dropped —
mypy>=2.3.0,pytest>=9.1.1,pytest-cov>=7.1.0,python-dotenv>=1.2.2,ruff>=0.16.1become bare names, matching the baseline. Runtime dependencies were restored throughuv add, not hand-edited, and resolved back to the same floors.Local gate (
make pre-commit) passes: ruff clean, ruff format no changes, mypy clean on 8 source files, 34 tests pass.