【发布时间】:2020-04-12 07:15:01
【问题描述】:
有一个serverless.yaml 文件包含这样的行:
VpcId: !Ref MyVpc
Yaml 文件由check-yaml git 钩子验证,该钩子由pre-commit 命令调用。所以pre-commit run --all-files 运行失败并出现错误:
could not determine a constructor for the tag '!Ref'
in "serverless.yml", line 172, column 29
有没有办法配置check-yaml 来跳过这个错误?
【问题讨论】:
标签: python git yaml pre-commit-hook