mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-02-04 05:44:25 +01:00
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:
@@ -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
|
||||
@@ -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
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user