admin管理员组

文章数量:1123048

Context: I downloaded a pre-commit distribution outside of github for working inside a firewall. And I install pre_commit_hooks as a local module.

problem: when I run pre-commit, check-yaml errors out

did not find expected <document start> in a python file.

I thought check-yaml is not supposed to check anything besides yaml files?

my pre-commit-config.yaml:

      - id: check-yaml
        name: check-yaml
        language: python
        entry: python3 -m pre_commit_hooks.check_yaml
        additional_dependencies: [pre_commit_hooks]

I tried to look up similar issues online and did not find anyone who's had the same exact issue.

本文标签: pythonprecommit checkyaml error did not find expected document startStack Overflow