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.

refactor: Move isort and mypy configuration into pyproject.toml

Reinier van der Leerc072c7d008bb
diff --git a/autogpts/autogpt/.isort.cfg b/autogpts/autogpt/.isort.cfg
deleted file mode 100644
index 17eab482ff..0000000000
--- a/autogpts/autogpt/.isort.cfg
+++ /dev/null
@@ -1,10 +0,0 @@
-[settings]
-profile = black
-multi_line_output = 3
-include_trailing_comma = true
-force_grid_wrap = 0
-use_parentheses = true
-ensure_newline_before_comments = true
-line_length = 88
-sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
-skip = .tox,__pycache__,*.pyc,venv*/*,reports,venv,env,node_modules,.env,.venv,dist
diff --git a/autogpts/autogpt/mypy.ini b/autogpts/autogpt/mypy.ini
deleted file mode 100644
index 6257f48809..0000000000
--- a/autogpts/autogpt/mypy.ini
+++ /dev/null
@@ -1,14 +0,0 @@
-[mypy]
-follow_imports = skip
-check_untyped_defs = True
-disallow_untyped_calls = True
-disallow_untyped_defs = True
-files = autogpt/**/*.py,tests/**/*.py
-
-[mypy-tests.*]
-disallow_untyped_defs = False
-
-[mypy-requests.*]
-ignore_missing_imports = True
-[mypy-yaml.*]
-ignore_missing_imports = True
diff --git a/autogpts/autogpt/pyproject.toml b/autogpts/autogpt/pyproject.toml
index a431cd89c0..786c9e6917 100644
--- a/autogpts/autogpt/pyproject.toml
+++ b/autogpts/autogpt/pyproject.toml
@@ -136,10 +136,31 @@ skip = '''
.venv/*
reports/*
dist/*
-
'''
+[tool.mypy]
+follow_imports = 'skip'
+check_untyped_defs = true
+disallow_untyped_calls = true
+disallow_untyped_defs = true
+files = [
+ 'autogpt/**/*.py',
+ 'tests/**/*.py'
+]
+
+[[tool.mypy.overrides]]
+module = 'tests.*'
+disallow_untyped_defs = false
+
+[[tool.mypy.overrides]]
+module = [
+ 'requests.*',
+ 'yaml.*'
+]
+ignore_missing_imports = true
+
+
[tool.pytest.ini_options]
markers = [
"requires_openai_api_key",