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 pre-commit config for pytest

Reinier van der Leere44d70d6d3e2
diff --git a/autogpts/autogpt/.pre-commit-config.yaml b/autogpts/autogpt/.pre-commit-config.yaml
index fe7881ace7..fc6b4623ba 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: pytest --cov=autogpt tests/unit
+ entry: bash -c 'cd autogpts/autogpt && pytest --cov=autogpt tests/unit'
language: system
pass_filenames: false
always_run: true