Repository navigation
Remove the punctuation dash from what the tool prints, and release 0.3.0 - #5
Merged
Merged
Conversation
The report header put an em dash between the tool name and the file path. That was the only punctuation dash reaching a reader in an ordinary run, and the dash is banned in anything published under Waiga Arya's name. Program output is published the moment somebody runs the command, so the rule reaches it too. The header now reads "Show Your Work: path", the same shape before-you-send 0.3.0 settled on. What was searched, so the count can be trusted. Every module was read as a syntax tree rather than as text, which separates a string that can be printed from a comment or a docstring that cannot. Each of the six dash characters was counted separately, and the ASCII sequence of a space, two hyphens and a space was counted on its own, because it prints identically to an em dash while hiding from a search for one. That is the mistake that undercounted a sister repository by five sites. Here the source held one printable dash and it is gone. The dashes remaining in comments and docstrings were left alone: nothing prints them. Two things stay, and they are layout rather than punctuation. A line of repeated hyphens is the rule under a heading. The hyphen that opens each item of the "Not checked" list is a bullet marker, the same way it is in Markdown. tests/test_output_style.py guards both directions. One test runs every format the README documents, over eight workbooks, and reads what a person would actually see, including the JSON path, where an escaped unicode dash would slip past a search of the raw text. The other reads the source, so a dash typed into a message no fixture happens to trigger still fails. Each was proved by putting a dash back and watching the right test break. The README sample block is regenerated from a real run, not typed. That corrected a second drift nobody had noticed: two of its finding lines carried three spaces before the check name where the tool prints two, so the published sample was not output the tool had ever produced. The documented reproduce sequence still holds, messy exits 1 with 7 findings and clean exits 0. Version 0.3.0, a minor bump because what the tool prints changed. The pre-commit revision example in the README moves with it, and the same example inside .pre-commit-hooks.yaml was still pinned at v0.1.0, two releases stale. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The block announces seven findings and then shows three, ending without saying so. A reader has no way to tell the output stopped rather than finished. The companion fix in says-on-the-tin names its omitted sections in prose outside the fence; this does the same. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
One line of what the tool prints, plus the release that carries it to the index.
The report header read
Show Your Workfollowed by an em dash and the file path.That em dash was the only punctuation dash reaching a reader in an ordinary run.
It now reads:
The colon is the shape
before-you-send0.3.0 settled on for the same headerproblem, so the four public tools now open a report the same way.
Why output and not just prose
The dash ban is Waiga's standing instruction from 10 September 2026. Asked on 18
September whether it reaches what a program prints and not only what a person
writes, the answer was yes. A command's output is published the moment somebody
runs it, and it is quoted into tickets and chat far more often than a README is
read.
How the count was made, and why one is a floor rather than a total
A sister repository was audited for the em dash and came back with nine sites.
A second pass found five more, because the ASCII sequence of a space, two
hyphens and a space prints identically to an em dash and matches no search for
one. The real total was fourteen. The same search had reported one site here, so
it was redone from scratch:
can be printed from a comment or a docstring that cannot, and it holds across
Python versions in a way that tokenising an f-string does not.
minus sign, non-breaking hyphen.
json.dumpsescapes a non-ASCIIcharacter by default, so an em dash leaves the program as six ASCII characters
and a search of the raw text would find nothing.
Result: one printable dash in the source, in
show_your_work/report.py. It isgone. Four dashes remain in comments and docstrings and were deliberately left
alone, because nothing prints them, and changing them would have been noise in
this diff.
What was deliberately kept
Two things read as a dash and are not punctuation:
NOT CHECKEDlist. That is a bulletmarker, exactly as in Markdown.
Hyphens inside compound words and identifiers are spelling and were not touched:
Macro-enabled workbook (.xlsm),--show-values,non-zero, and theOpen Government Licence – Ontarioen dash in the corpus manifest, which is thelicence's own registered name.
The test
tests/test_output_style.py, 24 cases, guards both directions.One half runs every invocation the README documents, over eight workbooks:
text,
--verbose,--show-values, both together,--format jsonsingle andarray, several files in one run,
--help,--version, and the two refusalmessages on stderr. It reads what a person would actually see.
The other half reads the source, so a dash typed into a check message that no
fixture here happens to trigger still fails the build. Without it the suite
would only prove the paths it exercises.
Each half was proved by putting a dash back:
macro_enabledsummary, which no fixture triggersargparsehelp stringRestored after each, suite green.
Proving the negative
Every documented format option, run against both example workbooks and one
missing file, scanned for all eight dash forms:
README
The sample block is regenerated from a real run rather than edited by hand. That
surfaced a second drift nobody had noticed: two of its finding lines carried
three spaces before the check name where the tool prints two, so the published
sample was not output this tool had ever produced. The block is now byte for
byte what the command emits.
The documented reproduce sequence still holds after the change:
Release
Version 0.3.0 in
pyproject.toml, a minor bump because what the tool printschanged. The version has one home and is read from installed metadata, so
nothing else needed editing. The pre-commit revision example in the README moves
with it, and the copy of that example inside
.pre-commit-hooks.yamlwas stillpinned at
v0.1.0, two releases stale; it is now current.Repository name and package name still differ on purpose. The package is
unexplained-cells, the command isshow-your-work, and the console entrypoint was verified to install under that name after the bump.
Tests
62 before, 86 after, 24 of them new. Green on Python 3.9.6, 3.11.16, 3.13.2 and
3.14.7 locally.
ruff check .clean.Not merged, not tagged, not published.
🤖 Generated with Claude Code