【发布时间】:2023-01-24 09:36:04
【问题描述】:
多年来我一直在使用pre-commit工具!直到最近它开始失败并出现一条神秘的错误消息时,它一直运行良好:
$ pre-commit run flake8 --all-files
An error has occurred: InvalidConfigError:
==> File .pre-commit-config.yaml
=====> Expected a Config map but got a list
Check the log at /home/asottile/.cache/pre-commit/pre-commit.log
我该如何解决?
【问题讨论】:
标签: pre-commit.com