gpt4 book ai didi

python - 预提交安装在哪里 "environments"?

转载 作者:行者123 更新时间:2023-12-03 13:45:35 24 4
gpt4 key购买 nike

我正在尝试设置 pre-commit 用于 Python 项目的存储库。运行时 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...
这些“环境”是什么,它们安装在哪里?

最佳答案

环境安装到 a cache :

pre-commit by default places its repository store in ~/.cache/pre-commit -- this can be configured in two ways:

  • PRE_COMMIT_HOME: if set, pre-commit will use that location instead.
  • XDG_CACHE_HOME: if set, pre-commit will use $XDG_CACHE_HOME/pre-commit following the XDG Base Directory Specification.


免责声明:我是作者

关于python - 预提交安装在哪里 "environments"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62539288/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com