Skip to content

chore: update to python-template v1.2.1 - #3

Merged
jmineau merged 1 commit into
mainfrom
chore/template-v1.2.0
Oct 11, 2026
Merged

jmineau merged 1 commit into
mainfrom
chore/template-v1.2.0

Conversation

@jmineau

@jmineau jmineau commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Takes pystiltctl from python-template v1.1.3 to v1.2.1.

v1.2.0 runs examples when the docs build: a .. plot:: figure in a docstring's Examples section, and .. ipython:: python blocks in .rst pages that show each line with its output (jmineau/python-template#17). A block or figure that raises, or that emits a Python warning, fails the build. Notebooks and Markdown code cells (myst-nb, which brings Jupyter) are a template question, docs_notebooks, answered no here. v1.2.1 raises the docs floors to pydata-sphinx-theme 0.22 and Sphinx 8.2 (jmineau/python-template#18).

pystiltctl has nothing to plot yet, so no page uses the new directives. docs/conf.py loads them, ipython and matplotlib join the dev group, and uv.lock gains 23 packages (IPython and its dependencies) without moving any package version. The live preview ignores docs/_build and __pycache__. AGENTS.md has the template's section on writing examples, and CONTRIBUTING.md and the justfile say that just build-docs runs the examples.

just quality-check (2 tests) and a clean just build-docs pass, as do all the pre-commit hooks.

Takes pystiltctl from python-template v1.1.3 to v1.2.1.

v1.2.0 runs examples when the docs build: a `.. plot::` figure in a
docstring's Examples section, and `.. ipython:: python` blocks in .rst pages
that show each line with its output. A block or figure that raises, or that
emits a Python warning, fails the build. Notebooks and Markdown code cells
(myst-nb, with Jupyter) are a template question, `docs_notebooks`, answered
no here. v1.2.1 raises the docs floors to pydata-sphinx-theme 0.22 and
Sphinx 8.2, which the theme requires.

- docs/conf.py loads the plot and IPython directives and saves the IPython
  figures under docs/_build.
- ipython and matplotlib join the dev group. uv.lock gains 23 packages
  (IPython and its dependencies) and no package version moves.
- AGENTS.md gains the template's section on writing examples. pystiltctl
  has nothing to plot yet, so no page uses it.
- The live preview ignores docs/_build and __pycache__, so a build's own
  output does not trigger the next build.
- CONTRIBUTING.md and the justfile say that `just build-docs` runs the
  examples. The ruff pre-commit hooks check notebooks, as `just lint` does.
@codecov-commenter

codecov-commenter commented Oct 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

@jmineau
jmineau merged commit b46dac6 into main Oct 11, 2026
7 checks passed
@jmineau
jmineau deleted the chore/template-v1.2.0 branch October 11, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants