【发布时间】:2023-01-24 08:50:07
【问题描述】:
多年来我一直在使用预提交工具!直到最近它开始失败并出现一条神秘的错误消息时,它一直运行良好:
$ pre-commit run flake8 --all-files
An error has occurred: InvalidConfigError:
==> File .pre-commit-config.yaml
==> At Config()
==> At key: repos
==> At Repository(repo='https://github.com/pre-commit/pre-commit-hooks')
=====> Missing required key: rev
Check the log at /home/asottile/.cache/pre-commit/pre-commit.log
我该如何解决?
【问题讨论】:
标签: pre-commit.com