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): Fix `pre-commit` `isort` step (#8726)
Reinier van der Leer33dd2eb9197c
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex ed86498fd9..f9ef30e34d 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -105,7 +105,7 @@ repos:- id: isortname: Lint (isort) - AutoGPT Platform - Backendalias: isort-platform-backend- entry: poetry -C autogpt_platform/backend run isort+ entry: poetry -C autogpt_platform/backend run isort -p backendfiles: ^autogpt_platform/backend/types: [file, python]language: system@@ -113,7 +113,7 @@ repos:- id: isortname: Lint (isort) - Classic - AutoGPTalias: isort-classic-autogpt- entry: poetry -C classic/original_autogpt run isort+ entry: poetry -C classic/original_autogpt run isort -p autogptfiles: ^classic/original_autogpt/types: [file, python]language: system@@ -121,7 +121,7 @@ repos:- id: isortname: Lint (isort) - Classic - Forgealias: isort-classic-forge- entry: poetry -C classic/forge run isort+ entry: poetry -C classic/forge run isort -p forgefiles: ^classic/forge/types: [file, python]language: system@@ -129,7 +129,7 @@ repos:- id: isortname: Lint (isort) - Classic - Benchmarkalias: isort-classic-benchmark- entry: poetry -C classic/benchmark run isort+ entry: poetry -C classic/benchmark run isort -p agbenchmarkfiles: ^classic/benchmark/types: [file, python]language: systemdiff --git a/autogpt_platform/backend/pyproject.toml b/autogpt_platform/backend/pyproject.tomlindex da179b8ab3..0e2a84a11e 100644--- a/autogpt_platform/backend/pyproject.toml+++ b/autogpt_platform/backend/pyproject.toml@@ -74,6 +74,9 @@ format = "linter:format"lint = "linter:lint"test = "run_tests:test"+[tool.isort]+profile = "black"+[tool.pytest-watcher]now = falseclear = true