Skip to content

The prose gate reads noqa and cSpell directives in one letter case though their tools read any #2809

Closed

Description

@ptr727

NOT_PROSE in .github/actions/prose-gate/prose_lint.py matches noqa and cSpell case-sensitively, though both tools read their directives in any letter case. flake8 compiles its inline noqa pattern with re.IGNORECASE and lists # NOQA and # NoQA as accepted forms, and CSpell reads cspell:, spell-checker: and spellchecker: in any case.

Constructed cases at the current develop head:

// cspell:ignore vendorid     in a .ts file  -> comment-case, comment-added
# NOQA: E501                  in a .py file  -> comment-added

comment-case is a gating rule the comments label does not stand down, and its remedy advice to capitalize changes nothing a tool reads in the CSpell case.

The branch fixing #1659 matched flake8's file-level exemption in every spelling flake8 reads and left these two as they were at the merge base, which reported them the same way. Found by a local review pass on #2808.

Activity

  1. added
    bug
    gate
    pre-existing
    on Oct 11, 2026
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

    buggatepre-existing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions