我正在尝试为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
不会安装环境。 - anthony sottilepre-commit install
命令来获取输出,因为我可以在我的 Bash 历史记录中看到它。 - planetp