diff --git a/autogpts/autogpt/.isort.cfg b/autogpts/autogpt/.isort.cfg deleted file mode 100644 index 17eab482..00000000 --- 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 6257f488..00000000 --- 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 a431cd89..786c9e69 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",