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.

Fix AutoGPT CI linters

Reinier van der Leerc773815c7089
diff --git a/.github/workflows/autogpt-ci.yml b/.github/workflows/autogpt-ci.yml
index 800fd264fe..031dffe2a2 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