From d26d5f8411d71038911fd7b7a4b9abeecafcda6d Mon Sep 17 00:00:00 2001 From: Alessio Bogon <778703+youtux@users.noreply.github.com> Date: Wed, 8 Jan 2025 21:09:37 +0100 Subject: [PATCH] Do not run `poetry lock` in pre-commit It will connect to PyPI, and it seems that pre-commit.ci does not allow that. In any case, we should only check if `poetry.lock` is in sync using `poetry check --lock`. That's enough. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c5e0154a..7c54dafd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,4 +18,4 @@ repos: rev: '8cad7a423b459871e9ed6094252b15c9ddb8a7dd' # frozen: 2.0.0 hooks: - id: poetry-check - - id: poetry-lock + args: ["--lock"]