Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/wiki-currency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# provenance). It versions with the content it grades, which is why it lives in
# autofit_assistant and not in the release hub. Two triggers feed it:
#
# 1. workflow_call β€” invoked by PyAutoBuild at stack-release time with the new version,
# so a release that moves the API is graded against the wiki immediately. PyAutoBuild
# 1. workflow_call β€” invoked by PyAutoHands at stack-release time with the new version,
# so a release that moves the API is graded against the wiki immediately. PyAutoHands
# only calls and reports; it owns none of the rules below.
# 2. pull_request / schedule / workflow_dispatch β€” runs in this repo against the
# currently-released stack, catching drift introduced by assistant changes themselves.
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
PYAUTO_SKIP_WORKSPACE_VERSION_CHECK: "1"
steps:
# Always check out autofit_assistant. On native triggers github.ref already points
# here; under workflow_call github.ref is the *caller's* ref, so PyAutoBuild passes
# here; under workflow_call github.ref is the *caller's* ref, so PyAutoHands passes
# assistant_ref (e.g. main / the release tag) to pin the version of the rules used.
- name: Check out autofit_assistant
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion autoassistant/tests/test_to_notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Fast and stdlib-only (json + tmp files): pins the cell-split semantics β€” docstring blocks
become markdown cells, code between becomes code cells β€” including the back-to-back
docstring case the PyAutoBuild reference pipeline mis-renders (two adjacent markdown
docstring case the PyAutoHands reference pipeline mis-renders (two adjacent markdown
cells, never a code cell containing literal `# %%`/`'''` markers).
"""

Expand Down
6 changes: 3 additions & 3 deletions autoassistant/to_notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
- the **code between** docstring blocks becomes a **code cell**.

This module is a self-contained, stdlib-only adaptation of the converter the PyAuto
workspaces already use at build time β€” ``PyAutoBuild:autobuild/build_util.py``
(``py_to_notebook``) and ``PyAutoBuild:autobuild/add_notebook_quotes.py`` β€” which pipe
workspaces already use at build time β€” ``PyAutoHands:autobuild/build_util.py``
(``py_to_notebook``) and ``PyAutoHands:autobuild/add_notebook_quotes.py`` β€” which pipe
through the external ``ipynb-py-convert`` tool. It mirrors their cell-split semantics
(a line *starting* with triple quotes toggles docstring mode) but emits nbformat-v4 JSON
directly, so an assistant clone or a science project needs neither PyAutoBuild nor an
directly, so an assistant clone or a science project needs neither PyAutoHands nor an
extra pip dependency.

Usage:
Expand Down
2 changes: 1 addition & 1 deletion modes/maintainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ The currency rules (symbol audit, idiom deny-list, provenance, citation paths, v
drift) live in exactly one place β€”
[`.github/workflows/wiki-currency.yml`](../.github/workflows/wiki-currency.yml), driving
`autoassistant/audit_skill_apis.py` β€” and run on every PR (plus `workflow_dispatch`, and
`workflow_call` for PyAutoBuild releases once the release-side wiring lands). When you
`workflow_call` for PyAutoHands releases once the release-side wiring lands). When you
change the rules, edit them there only.
4 changes: 2 additions & 2 deletions skills/af_to_notebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ block becomes a **markdown cell**; the Python between blocks becomes a **code ce
## Orient

The converter is `autoassistant/to_notebook.py` β€” stdlib-only, no external tools. It adapts
the converter the PyAuto workspaces use at build time (`PyAutoBuild:autobuild/build_util.py`
the converter the PyAuto workspaces use at build time (`PyAutoHands:autobuild/build_util.py`
`py_to_notebook` + `add_notebook_quotes.py`) and mirrors its cell-split semantics. In a
science project, run it from the resolved assistant clone (refer-back).

Expand Down Expand Up @@ -44,4 +44,4 @@ identically.) The CLI prints the absolute output path β€” quote it and offer to
(`start-new-project.md` Collaborate/Publish): reviewers and collaborators often prefer
opening a notebook to running a script.
- For workspace-published notebooks (Colab setup cells, magic handling), the build pipeline
in PyAutoBuild remains authoritative β€” this skill is for assistant/project scripts.
in PyAutoHands remains authoritative β€” this skill is for assistant/project scripts.
Loading