mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04: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