Skip to content

Report a File the Prose Gate Cannot Decode Instead of Skipping It #2796

Closed

Description

@ptr727

Problem

The prose gate reads no line of a file whose bytes are not UTF-8, and says nothing about it. check_file in .github/actions/prose-gate/prose_lint.py catches the UnicodeDecodeError from its decode and returns no findings, so every rule, the character-set rule included, skips that file and the run reports the same clean scope line a tree of readable files prints. report_paths_that_are_not_utf8 covers a path name that does not decode, not file content.

For example, a constructed latin.py holding the bytes # caf\xe9 is fine.\nx = 1\n is counted as read and yields no finding under any rule.

Done

A file the gate cannot decode is reported, as a finding or in the scope line, so a pass that skipped it is distinguishable from a clean one.

Found by the local strict review of the #2163 fix (handoff #2795). The finding is on code that change did not touch.

Activity

  1. added
    bug
    pre-existing
    prose
    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

    bugpre-existingprose

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions