Repository navigation
notes: a Python the scan drops retires the note, not the whole file - #89
Conversation
load() now leaves out a note whose python labels are all unscanned (with a warning) and drops unscanned labels from a note that still has a scanned one, so the file's other notes stay on the site. problems() stays strict and says to remove the label. Closes wheelgap#55 Signed-off-by: sarankumar1325 <[email protected]>
|
Thanks @sarankumar1325, this is a thoughtful fix: retiring just the affected note (and trimming unscanned labels from a note that still has a scanned one) keeps the rest of the file on the site, and the tests pin each case clearly. It looks good overall. Because it changes (Review assisted by Claude.) |
pyodide on python ["3.13", "3.14t"]: once 3.13 is dropped, trimming leaves 3.14t, which pyodide has no target for, and the pairs check left the whole file out again. Retire that note instead, like one whose Pythons are all gone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Merged, thanks @sarankumar1325! Retiring just the affected note, instead of losing a package's whole notes file whenever the scan drops a Python, is exactly the right shape, and keeping (Reply assisted by Claude.) |
Closes #55
What changed
scripts/check_notes.pyload()(the site build) no longer treats a Python the scan has stopped covering as a problem with the file. A new_retire_unscannedruns before each note's checks, only on a well-formedpythonlist (non-empty, all strings):warngetsretiring <file> note N: python 3.12 is no longer scanned. The file's other notes still reach the site. A file whose notes are all retired is left out with no empty entry.python, so it retires by the Pythons that remain.python(e.g.[3.13]) still makes the file a problem, as before.problems()(the PR check, "Check notes" in check.yml) stays strict. My choice for an existing note that names a dropped Python: the check fails, with a clearer message:unknown python '3.12': the scan covers 3.13, 3.14t; if it no longer covers this Python, remove it from python. A new note can't name an unscanned Python. When the scan drops 3.13, the PR check tells whoever touches notes next exactly what to remove, while the site keeps showing the rest in the meantime.notes/README.md: thepythonparagraph now says this.Tests
tests/test_check_notes.py, 5 new tests:pythonstill shows the second note throughload(), with one retiring warning.["3.12", "3.13"]loads as["3.13"]with no warning.problems()still reports the unknown label, with the new message.pythonstill keeps the file out.tests/test_notes_on_site.py::test_a_note_for_a_python_the_scan_lacks_is_left_out_with_a_warningchecked the old warning text. Its behaviour (note left out, one warning) is unchanged, so only the expected text was updated.uvx --python 3.14 [email protected]gives 344 passed, 1 skipped.python3 scripts/check_notes.pyon the real notes exits 0. The site tests (node --test tests/site/...) pass 34/34.Written with an AI coding assistant; I reviewed the diff and ran the checks above.