我正在尝试为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...这些“环境”是什么?它们将被安装到哪里?
发布于 2020-06-24 00:32:21
环境将安装到a cache中
默认情况下,
pre-commit将其存储库存储放在~/.cache/pre-commit中--这可以通过两种方式进行配置:
PRE_COMMIT_HOME:如果设置,pre-commit将使用该位置instead.XDG_CACHE_HOME:。如果设置,pre-commit将在XDG Base Directory Specification.之后使用$XDG_CACHE_HOME/pre-commit
免责声明:我是作者
发布于 2020-06-24 00:34:35
看一下这个文档部分:Managing CI Caches
https://stackoverflow.com/questions/62539288
复制相似问题