Skip to content

check-yaml rejects files with the %YAML directive #666

@dunmatt

Description

@dunmatt

When I run pre-commit against a file that has a YAML directive (ie %YAML:1.0 is the first line of the file) it incorrectly tells me:

while scanning a directive
  in "src/example.yaml", line 1, column 1
found unexpected non-alphabetical character
  in "src/example.yaml", line 1, column 6
while scanning a simple key

Expected behavior:
It shouldn't complain, the YAML directive is part of the YAML standard.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions