Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix: Fix agent poetry env usage in pre-commit hook

Reinier van der Leer760e0a0816a5
diff --git a/autogpts/autogpt/.pre-commit-config.yaml b/autogpts/autogpt/.pre-commit-config.yaml
index fc6b4623ba..d2a061a4d8 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