fix: Fix pre-commit config for pytest

- Modify the entry command to change directories before running pytest
This commit is contained in:
Reinier van der Leer
2023-12-02 06:23:25 +01:00
parent fe96f6d783
commit e44d70d6d3

View File

@@ -36,7 +36,7 @@ repos:
# types: [ python ]
- id: pytest-check
name: pytest-check
entry: pytest --cov=autogpt tests/unit
entry: bash -c 'cd autogpts/autogpt && pytest --cov=autogpt tests/unit'
language: system
pass_filenames: false
always_run: true