@@ -14,12 +14,16 @@ Uses `uv` for environment/dependency management and `just` as the command runner
1414- `just test` - run pytest with coverage (fails under 98%)
1515- `just audit` - check dependencies for known vulnerabilities (pip-audit)
1616- `just markdownlint` - lint Markdown files (markdownlint-cli2, config in `.markdownlint-cli2.jsonc`)
17+ {% - if use_docs %}
1718- `just docs-build` - build the docs with Zensical in strict mode (`zensical.toml`, pages in `docs/`)
1819- `just docs-serve` - serve the docs locally with live reload
20+ {% - endif %}
1921- `just zizmor` - audit GitHub Actions workflows for security issues
2022- `just git-leaks` - scan staged changes for secrets
23+ {% - if use_releases %}
2124- `just set-github-labels` - remove non-release default labels, then create/update the release labels on GitHub
2225 (`scripts/sync-labels.sh`, needs `gh`, for fresh repos)
26+ {% - endif %}
2327- `uv add <pkg >` / `uv add --dev <pkg >` - add a runtime / dev dependency (never edit `uv.lock` by hand)
2428- `uv run {{ project_name }}` - run the app entry point
2529
@@ -31,10 +35,10 @@ Run `just lint` and `just test` before considering a change done.
3135- `src/{{ package_name }}/__init__.py` - `main()` entry point, exposed as the `{{ project_name }}` script
3236- `tests/` - pytest tests; import the package as `from {{ package_name }}.<module > import ...`
3337- `prek.toml` - git hook config (`prek install` to enable)
34- - `.github/workflows/` - `python.yml` (lint, tests, docs build, markdownlint),
35- `security.yml` (zizmor, gitleaks, pip-audit),
38+ - `.github/workflows/` - `python.yml` (lint, tests,{% if use_docs %} docs build,{% endif %} markdownlint),
39+ `security.yml` (zizmor, gitleaks, pip-audit){% if use_releases %} ,
3640 `release-drafter.yml` (draft release, PR labels), `release.yml` (manual release)
37- - `.github/release-drafter.yml` - release label → version bump / release notes section mapping
41+ - `.github/release-drafter.yml` - release label → version bump / release notes section mapping{% endif %}
3842- `.github/dependabot.yml` - weekly updates for actions, uv, dev container image and features
3943- `.devcontainer/` - dev container; base image, `just`, and `uv` pinned by tag + digest
4044- `scripts/` - repo maintenance scripts
@@ -46,7 +50,7 @@ Run `just lint` and `just test` before considering a change done.
4650- Type hints on public functions; code must pass `ty check`
4751- Renaming the project means updating `[project] name`, the `src/<name >/` folder, and `[project.scripts]` together
4852
49- ## CI, security, and releases
53+ ## CI{% if use_releases %} , security, and releases{% else %} and security {% endif %}
5054
5155- Pin GitHub Actions to a full commit SHA with a version comment (`uses: owner/action@<sha > # vX.Y.Z`);
5256 run `just zizmor` after editing workflows
@@ -56,6 +60,8 @@ Run `just lint` and `just test` before considering a change done.
5660- uv is pinned to 0.13.x in four places that must stay in sync: `[tool.uv] required-version` and the
5761 `uv_build` requirement in `pyproject.toml`, `setup-uv` `version` in the workflows, and the uv image in
5862 `.devcontainer/Dockerfile`
63+ {% - if use_releases %}
5964- Do not bump `[project] version` by hand; the Release workflow does it
6065- Every PR needs a release label (GitHub PR label, not a title/commit prefix): `breaking`, `feature`,
6166 `enhancement`, `bug`, `fix`, `chore`, `ci`, `dependencies`, `documentation`, `refactor`, or `skip-changelog`
67+ {% - endif %}
0 commit comments