mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-02-23 15:14:44 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user