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.

added more tools

0xArty6ca6a8aa608c
diff --git a/.gitignore b/.gitignore
index 5a2ce371ca..9874d425c8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+## Original ignores
autogpt/keys.py
autogpt/*json
autogpt/node_modules/
@@ -19,10 +20,135 @@ log.txt
log-ingestion.txt
logs
-# Coverage reports
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+build/
+develop-eggs/
+dist/
+plugins/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+wheels/
+pip-wheel-metadata/
+share/python-wheels/
+*.egg-info/
+.installed.cfg
+*.egg
+MANIFEST
+
+# PyInstaller
+# Usually these files are written by a python script from a template
+# before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.nox/
.coverage
+.coverage.*
+.cache
+nosetests.xml
coverage.xml
-htmlcov/
+*.cover
+*.py,cover
+.hypothesis/
+.pytest_cache/
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+local_settings.py
+db.sqlite3
+db.sqlite3-journal
+
+# Flask stuff:
+instance/
+.webassets-cache
+
+# Scrapy stuff:
+.scrapy
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+# Jupyter Notebook
+.ipynb_checkpoints
+
+# IPython
+profile_default/
+ipython_config.py
+
+# pyenv
+.python-version
+
+# pipenv
+# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
+# However, in case of collaboration, if having platform-specific dependencies or dependencies
+# having no cross-platform support, pipenv may install dependencies that don't work, or not
+# install all needed dependencies.
+#Pipfile.lock
+
+# PEP 582; used by e.g. github.com/David-OConnor/pyflow
+__pypackages__/
+
+# Celery stuff
+celerybeat-schedule
+celerybeat.pid
+
+# SageMath parsed files
+*.sage.py
+
+# Environments
+.env
+.venv
+env/
+venv/
+ENV/
+env.bak/
+venv.bak/
+
+# Spyder project settings
+.spyderproject
+.spyproject
+
+# Rope project settings
+.ropeproject
+
+# mkdocs documentation
+/site
+
+# mypy
+.mypy_cache/
+.dmypy.json
+dmypy.json
-# For Macs Dev Environs: ignoring .Desktop Services_Store
-.DS_Store
+# Pyre type checker
+.pyre/
+llama-*
+vicuna-*
\ No newline at end of file
diff --git a/.isort.cfg b/.isort.cfg
new file mode 100644
index 0000000000..8ad53a862d
--- /dev/null
+++ b/.isort.cfg
@@ -0,0 +1,10 @@
+[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
+skip = venv,env,node_modules,.env,.venv,dist
+sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
\ No newline at end of file
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 62b06d7bd8..fb75cd59b0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,33 @@
repos:
-- repo: https://github.com/psf/black
- rev: 21.12b0
- hooks:
- - id: black
- language_version: python3
\ No newline at end of file
+ - repo: https://github.com/sourcery-ai/sourcery
+ rev: v1.1.0 # Get the latest tag from https://github.com/sourcery-ai/sourcery/tags
+ hooks:
+ - id: sourcery
+
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v0.9.2
+ hooks:
+ - id: check-added-large-files
+ args: [ '--maxkb=500' ]
+ - id: check-byte-order-marker
+ - id: check-case-conflict
+ - id: check-merge-conflict
+ - id: check-symlinks
+ - id: debug-statements
+
+ - repo: local
+ hooks:
+ - id: isort
+ name: isort-local
+ entry: isort
+ language: python
+ types: [ python ]
+ exclude: .+/(dist|.venv|venv|build)/.+
+ pass_filenames: true
+ - id: black
+ name: black-local
+ entry: black
+ language: python
+ types: [ python ]
+ exclude: .+/(dist|.venv|venv|build)/.+
+ pass_filenames: true
\ No newline at end of file
diff --git a/.sourcery.yaml b/.sourcery.yaml
new file mode 100644
index 0000000000..a7f5b9d761
--- /dev/null
+++ b/.sourcery.yaml
@@ -0,0 +1,71 @@
+# 🪄 This is your project's Sourcery configuration file.
+
+# You can use it to get Sourcery working in the way you want, such as
+# ignoring specific refactorings, skipping directories in your project,
+# or writing custom rules.
+
+# 📚 For a complete reference to this file, see the documentation at
+# https://docs.sourcery.ai/Configuration/Project-Settings/
+
+# This file was auto-generated by Sourcery on 2023-02-25 at 21:07.
+
+version: '1' # The schema version of this config file
+
+ignore: # A list of paths or files which Sourcery will ignore.
+- .git
+- venv
+- .venv
+- build
+- dist
+- env
+- .env
+- .tox
+
+rule_settings:
+ enable:
+ - default
+ - gpsg
+ disable: [] # A list of rule IDs Sourcery will never suggest.
+ rule_types:
+ - refactoring
+ - suggestion
+ - comment
+ python_version: '3.9' # A string specifying the lowest Python version your project supports. Sourcery will not suggest refactorings requiring a higher Python version.
+
+# rules: # A list of custom rules Sourcery will include in its analysis.
+# - id: no-print-statements
+# description: Do not use print statements in the test directory.
+# pattern: print(...)
+# language: python
+# replacement:
+# condition:
+# explanation:
+# paths:
+# include:
+# - test
+# exclude:
+# - conftest.py
+# tests: []
+# tags: []
+
+# rule_tags: {} # Additional rule tags.
+
+# metrics:
+# quality_threshold: 25.0
+
+# github:
+# labels: []
+# ignore_labels:
+# - sourcery-ignore
+# request_review: author
+# sourcery_branch: sourcery/{base_branch}
+
+# clone_detection:
+# min_lines: 3
+# min_duplicates: 2
+# identical_clones_only: false
+
+# proxy:
+# url:
+# ssl_certs_file:
+# no_ssl_verify: false
\ No newline at end of file
diff --git a/requirements.txt b/requirements.txt
index cbfb836f88..306c23dedb 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -19,4 +19,6 @@ coverage
flake8
numpy
pre-commit
-black
\ No newline at end of file
+black
+sourcery
+isort
\ No newline at end of file