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.
This commit is contained in:
Reinier van der Leer
2023-12-02 15:38:59 +01:00
parent ef35702c4b
commit 760e0a0816

View File

@@ -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