From c773815c7089f0a16e65cb6fe08b790372d65d50 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Thu, 21 Sep 2023 17:08:57 +0200 Subject: [PATCH] Fix AutoGPT CI linters --- .github/workflows/autogpt-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/autogpt-ci.yml b/.github/workflows/autogpt-ci.yml index 800fd264..031dffe2 100644 --- a/.github/workflows/autogpt-ci.yml +++ b/.github/workflows/autogpt-ci.yml @@ -66,24 +66,24 @@ jobs: poetry install - name: Lint with flake8 - run: flake8 + run: poetry run flake8 - name: Check black formatting - run: black . --check + run: poetry run black . --check if: success() || failure() - name: Check isort formatting - run: isort . --check + run: poetry run isort . --check if: success() || failure() - name: Check mypy formatting - run: mypy + run: poetry run mypy if: success() || failure() - name: Check for unused imports and pass statements run: | cmd="autoflake --remove-all-unused-imports --recursive --ignore-init-module-imports --ignore-pass-after-docstring autogpt tests" - $cmd --check || (echo "You have unused imports or pass statements, please run '${cmd} --in-place'" && exit 1) + poetry run $cmd --check || (echo "You have unused imports or pass statements, please run '${cmd} --in-place'" && exit 1) test: # eliminate duplicate runs