Skip to content

Notes: a Python the scan drops shouldn't take the package's whole notes file down #55

Closed

Description

@patrickballard

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 whole notes/<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

  1. added
    bug
    good first issue
    on Nov 13, 2026
  2. added a commit that references this issue on Nov 17, 2026
    fd29574
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions