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
版权声明:本文标题:python - pre-commit check-yaml error: did not find expected document start - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736541515a1944390.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论