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.
refactor: Disable mypy and autoflake in CI and pre-commit hook
Reinier van der Leerfe96f6d78324
diff --git a/.github/workflows/autogpt-ci.yml b/.github/workflows/autogpt-ci.ymlindex 1701325d3f..9005d16077 100644--- a/.github/workflows/autogpt-ci.yml+++ b/.github/workflows/autogpt-ci.yml@@ -65,14 +65,14 @@ jobs:run: poetry run isort . --checkif: success() || failure()- - name: Check mypy formatting- 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"- poetry run $cmd --check || (echo "You have unused imports or pass statements, please run '${cmd} --in-place'" && exit 1)+ # - name: Check mypy formatting+ # 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"+ # poetry run $cmd --check || (echo "You have unused imports or pass statements, please run '${cmd} --in-place'" && exit 1)test:permissions:diff --git a/autogpts/autogpt/.pre-commit-config.yaml b/autogpts/autogpt/.pre-commit-config.yamlindex cb7180d4cf..fe7881ace7 100644--- a/autogpts/autogpt/.pre-commit-config.yaml+++ b/autogpts/autogpt/.pre-commit-config.yaml@@ -22,18 +22,18 @@ repos:- id: blacklanguage_version: python3.10- - repo: https://github.com/pre-commit/mirrors-mypy- rev: 'v1.3.0'- hooks:- - id: mypy+ # - repo: https://github.com/pre-commit/mirrors-mypy+ # rev: 'v1.3.0'+ # hooks:+ # - id: mypy- repo: localhooks:- - id: autoflake- name: autoflake- entry: autoflake --in-place --remove-all-unused-imports --recursive --ignore-init-module-imports --ignore-pass-after-docstring autogpt tests- language: python- types: [ python ]+ # - id: autoflake+ # name: autoflake+ # entry: autoflake --in-place --remove-all-unused-imports --recursive --ignore-init-module-imports --ignore-pass-after-docstring autogpt tests+ # language: python+ # types: [ python ]- id: pytest-checkname: pytest-checkentry: pytest --cov=autogpt tests/unit