refactor: Move isort and mypy configuration into pyproject.toml

- Deleted .isort.cfg and mypy.ini
- Updated pyproject.toml to include isort and mypy configuration
This commit is contained in:
Reinier van der Leer
2023-12-02 06:10:45 +01:00
parent d938c2595e
commit c072c7d008
3 changed files with 22 additions and 25 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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",