From 081c4a6df27c37e79c50684a10f5c5b917e4577b Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Tue, 7 Jan 2025 00:02:39 +0100 Subject: [PATCH] dx: Fix `isort` pre-commit hooks Since upgrading to Poetry v2.0.0 the -C flag has been renamed to -P --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f5c2f0b2d..293a9e2d4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -110,7 +110,7 @@ repos: - id: isort name: Lint (isort) - AutoGPT Platform - Backend alias: isort-platform-backend - entry: poetry -C autogpt_platform/backend run isort -p backend + entry: poetry -P autogpt_platform/backend run isort -p backend files: ^autogpt_platform/backend/ types: [file, python] language: system @@ -118,7 +118,7 @@ repos: - id: isort name: Lint (isort) - Classic - AutoGPT alias: isort-classic-autogpt - entry: poetry -C classic/original_autogpt run isort -p autogpt + entry: poetry -P classic/original_autogpt run isort -p autogpt files: ^classic/original_autogpt/ types: [file, python] language: system @@ -126,7 +126,7 @@ repos: - id: isort name: Lint (isort) - Classic - Forge alias: isort-classic-forge - entry: poetry -C classic/forge run isort -p forge + entry: poetry -P classic/forge run isort -p forge files: ^classic/forge/ types: [file, python] language: system @@ -134,7 +134,7 @@ repos: - id: isort name: Lint (isort) - Classic - Benchmark alias: isort-classic-benchmark - entry: poetry -C classic/benchmark run isort -p agbenchmark + entry: poetry -P classic/benchmark run isort -p agbenchmark files: ^classic/benchmark/ types: [file, python] language: system