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.

dx(backend): Disable pre-commit `pytest` hooks (#10003)

Reinier van der Leer767d2f2c1ec0
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b071af00df..605e9186e8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -241,38 +241,38 @@ repos:
language: system
pass_filenames: false
- - repo: local
- hooks:
- - id: pytest
- name: Run tests - AutoGPT Platform - Backend
- alias: pytest-platform-backend
- entry: bash -c 'cd autogpt_platform/backend && poetry run pytest'
- # include autogpt_libs source (since it's a path dependency) but exclude *_test.py files:
- files: ^autogpt_platform/(backend/((backend|test)/|poetry\.lock$)|autogpt_libs/(autogpt_libs/.*(?<!_test)\.py|poetry\.lock)$)
- language: system
- pass_filenames: false
+ # - repo: local
+ # hooks:
+ # - id: pytest
+ # name: Run tests - AutoGPT Platform - Backend
+ # alias: pytest-platform-backend
+ # entry: bash -c 'cd autogpt_platform/backend && poetry run pytest'
+ # # include autogpt_libs source (since it's a path dependency) but exclude *_test.py files:
+ # files: ^autogpt_platform/(backend/((backend|test)/|poetry\.lock$)|autogpt_libs/(autogpt_libs/.*(?<!_test)\.py|poetry\.lock)$)
+ # language: system
+ # pass_filenames: false
- - id: pytest
- name: Run tests - Classic - AutoGPT (excl. slow tests)
- alias: pytest-classic-autogpt
- entry: bash -c 'cd classic/original_autogpt && poetry run pytest --cov=autogpt -m "not slow" tests/unit tests/integration'
- # include forge source (since it's a path dependency) but exclude *_test.py files:
- files: ^(classic/original_autogpt/((autogpt|tests)/|poetry\.lock$)|classic/forge/(forge/.*(?<!_test)\.py|poetry\.lock)$)
- language: system
- pass_filenames: false
+ # - id: pytest
+ # name: Run tests - Classic - AutoGPT (excl. slow tests)
+ # alias: pytest-classic-autogpt
+ # entry: bash -c 'cd classic/original_autogpt && poetry run pytest --cov=autogpt -m "not slow" tests/unit tests/integration'
+ # # include forge source (since it's a path dependency) but exclude *_test.py files:
+ # files: ^(classic/original_autogpt/((autogpt|tests)/|poetry\.lock$)|classic/forge/(forge/.*(?<!_test)\.py|poetry\.lock)$)
+ # language: system
+ # pass_filenames: false
- - id: pytest
- name: Run tests - Classic - Forge (excl. slow tests)
- alias: pytest-classic-forge
- entry: bash -c 'cd classic/forge && poetry run pytest --cov=forge -m "not slow"'
- files: ^classic/forge/(forge/|tests/|poetry\.lock$)
- language: system
- pass_filenames: false
+ # - id: pytest
+ # name: Run tests - Classic - Forge (excl. slow tests)
+ # alias: pytest-classic-forge
+ # entry: bash -c 'cd classic/forge && poetry run pytest --cov=forge -m "not slow"'
+ # files: ^classic/forge/(forge/|tests/|poetry\.lock$)
+ # language: system
+ # pass_filenames: false
- - id: pytest
- name: Run tests - Classic - Benchmark
- alias: pytest-classic-benchmark
- entry: bash -c 'cd classic/benchmark && poetry run pytest --cov=benchmark'
- files: ^classic/benchmark/(agbenchmark/|tests/|poetry\.lock$)
- language: system
- pass_filenames: false
+ # - id: pytest
+ # name: Run tests - Classic - Benchmark
+ # alias: pytest-classic-benchmark
+ # entry: bash -c 'cd classic/benchmark && poetry run pytest --cov=benchmark'
+ # files: ^classic/benchmark/(agbenchmark/|tests/|poetry\.lock$)
+ # language: system
+ # pass_filenames: false