Skip to content

switching to serde_saphyr seems to cause hook to fail #1102

@atlasrealm

Description

@atlasrealm

Summary

since the introduction of serde_saphyr (https://github.com/j178/prek/pull/1087/files) our check-yaml hook fails with errors like this:

redacted.yaml: Failed to yaml decode (!!binary scalar is not valid UTF-8 at line 26, column 9)

which refers to this kind of content in a .yaml file:

response:
      body:
        string: !!binary |
          g5tmEZW9HiKiqA8BGikL5++PkGHuP3+p/1+/WHOrSONjGb........

This didn't cause any issues for us before the change

Platform

GitHub actions

Version

prek 0.2.9 (565c5e2 2025-10-16)

.pre-commit-config.yaml

repos:

Log file

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions