You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Notes: a Python the scan drops shouldn't take the package's whole notes file down #55
Since #53, a note can list the Pythons it applies to (python = ["3.13"]), and scripts/check_notes.py rejects a label the scan doesn't cover. That's right for a new note, but when the nightly scan stops covering a Python (3.13 will go one day), every existing note that names it becomes a problem: load() leaves the wholenotes/<pkg>.toml out of the site, hiding that package's other notes too, and check.yml's "Check notes" step fails on every PR until someone edits the file.
Platforms already behave this way, but the scanned Pythons change every year.
What to do
In scripts/check_notes.py, let load() (the site build) treat a note whose python labels are all no longer scanned as retired (left out, with a warn), and ignore unscanned labels on a note that still has a scanned one. Keep problems() (the PR check) strict, so a new note can't name an unscanned Python.
Decide what the PR check should say about an existing note naming a dropped Python (fail with a clear "3.13 is no longer scanned: remove it from python" message is fine) and say which in the PR.
Tests in tests/test_check_notes.py: a file with one note for a dropped Python and one without python still shows the second note through load(); a note whose only label was dropped is left out; problems() still reports the unknown label.
Activity
notes: a Python the scan drops retires the note, not the whole file (w…