From 767d2f2c1ec0dd9502dd7204aefbaa83658a63f6 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Sun, 25 May 2025 14:40:59 +0200 Subject: [PATCH] dx(backend): Disable pre-commit `pytest` hooks (#10003) Running the tests locally takes a lot of time and leaves test data behind in the DB, making it impractical to actually run locally. I'm disabling the `pytest` hooks in the pre-commit config so the pre-commit checks can reasonably be used without significant negative impact to DX. This doesn't impact UX and there is nothing to test. --- .pre-commit-config.yaml | 64 ++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 32 deletions(-) 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/.*(?