From 760e0a0816a553ed56da74a65174073818ef1aba Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Sat, 2 Dec 2023 15:38:59 +0100 Subject: [PATCH] fix: Fix agent poetry env usage in pre-commit hook - Update the pytest command in the .pre-commit-config.yaml file to use Poetry run instead of directly running pytest in the autogpts/autogpt directory. --- autogpts/autogpt/.pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpts/autogpt/.pre-commit-config.yaml b/autogpts/autogpt/.pre-commit-config.yaml index fc6b4623..d2a061a4 100644 --- a/autogpts/autogpt/.pre-commit-config.yaml +++ b/autogpts/autogpt/.pre-commit-config.yaml @@ -36,7 +36,7 @@ repos: # types: [ python ] - id: pytest-check name: pytest-check - entry: bash -c 'cd autogpts/autogpt && pytest --cov=autogpt tests/unit' + entry: bash -c 'cd autogpts/autogpt && poetry run pytest --cov=autogpt tests/unit' language: system pass_filenames: false always_run: true