【发布时间】:2020-06-23 16:18:34
【问题描述】:
我正在尝试为 Python 项目的存储库设置 pre-commit。运行 pre-commit install 后,我看到如下输出:
[INFO] Installing environment for https://github.com/asottile/seed-isort-config.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/mirrors-isort.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/mirrors-pylint.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
这些“环境”是什么?它们安装在哪里?
【问题讨论】:
-
请注意,您的输出必须来自
pre-commit install --install-hooks或pre-commit install-hooks或pre-commit run,因为pre-commit install本身不安装环境 -
我确实只运行了
pre-commit install来获得该输出,正如我在 Bash 历史中看到的那样。 -
相信我,这是不可能的——我是作者
标签: python git pre-commit-hook pre-commit pre-commit.com