You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

pyproject.toml 2.4 kB

Code executors (#1405) * code executor * test * revert to main conversable agent * prepare for pr * kernel * run open ai tests only when it's out of draft status * update workflow file * revert workflow changes * ipython executor * check kernel installed; fix tests * fix tests * fix tests * update system prompt * Update notebook, more tests * notebook * raise instead of return None * allow user provided code executor. * fixing types * wip * refactoring * polishing * fixed failing tests * resolved merge conflict * fixing failing test * wip * local command line executor and embedded ipython executor * revert notebook * fix format * fix merged error * fix lmm test * fix lmm test * move warning * name and description should be part of the agent protocol, reset is not as it is only used for ConversableAgent; removing accidentally commited file * version for dependency * Update autogen/agentchat/conversable_agent.py Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com> * ordering of protocol * description * fix tests * make ipython executor dependency optional * update document optional dependencies * Remove exclude from Agent protocol * Make ConversableAgent consistent with Agent * fix tests * add doc string * add doc string * fix notebook * fix interface * merge and update agents * disable config usage in reply function * description field setter * customize system message update * update doc --------- Co-authored-by: Davor Runje <davor@airt.ai> Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com> Co-authored-by: Aaron <aaronlaptop12@hotmail.com> Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. [metadata]
  2. license_file = "LICENSE"
  3. description-file = "README.md"
  4. [tool.pytest.ini_options]
  5. addopts = '-m "not conda"'
  6. markers = [
  7. "conda: test related to conda forge distribution"
  8. ]
  9. [tool.black]
  10. # https://github.com/psf/black
  11. line-length = 120
  12. exclude = "(.eggs|.git|.hg|.mypy_cache|.venv|_build|buck-out|build|dist)"
  13. [tool.ruff]
  14. line-length = 120
  15. [tool.ruff.lint]
  16. # Enable Pyflakes `E` and `F` codes by default.
  17. select = [
  18. "E", "W", # see: https://pypi.org/project/pycodestyle
  19. "F", # see: https://pypi.org/project/pyflakes
  20. # "D", # see: https://pypi.org/project/pydocstyle
  21. # "N", # see: https://pypi.org/project/pep8-naming
  22. # "S", # see: https://pypi.org/project/flake8-bandit
  23. "I", # see: https://pypi.org/project/isort/
  24. ]
  25. ignore = [
  26. "E501",
  27. "F401",
  28. "F403",
  29. "C901",
  30. ]
  31. # Exclude a variety of commonly ignored directories.
  32. exclude = [
  33. ".eggs",
  34. ".git",
  35. ".mypy_cache",
  36. ".ruff_cache",
  37. "__pypackages__",
  38. "_build",
  39. "build",
  40. "dist",
  41. "docs",
  42. # This file needs to be either upgraded or removed and therefore should be
  43. # ignore from type checking for now
  44. "math_utils\\.py$",
  45. "**/cap/py/autogencap/proto/*",
  46. ]
  47. ignore-init-module-imports = true
  48. unfixable = ["F401"]
  49. [tool.ruff.lint.mccabe]
  50. # Unlike Flake8, default to a complexity level of 10.
  51. max-complexity = 10
  52. [tool.mypy]
  53. files = [
  54. "autogen/logger",
  55. "autogen/exception_utils.py",
  56. "autogen/coding",
  57. "autogen/oai/openai_utils.py",
  58. "autogen/_pydantic.py",
  59. "autogen/function_utils.py",
  60. "autogen/io",
  61. "test/test_pydantic.py",
  62. "test/test_function_utils.py",
  63. "test/io",
  64. ]
  65. exclude = [
  66. "autogen/math_utils\\.py",
  67. "autogen/oai/completion\\.py",
  68. "autogen/agentchat/contrib/compressible_agent\\.py",
  69. "autogen/agentchat/contrib/math_user_proxy_agent.py",
  70. ]
  71. strict = true
  72. python_version = "3.8"
  73. ignore_missing_imports = true
  74. install_types = true
  75. non_interactive = true
  76. plugins = [
  77. "pydantic.mypy"
  78. ]
  79. # remove after all files in the repo are fixed
  80. follow_imports = "silent"
  81. # from https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
  82. disallow_untyped_defs = true
  83. no_implicit_optional = true
  84. check_untyped_defs = true
  85. warn_return_any = true
  86. show_error_codes = true
  87. warn_unused_ignores = true
  88. disallow_incomplete_defs = true
  89. disallow_untyped_decorators = true
  90. disallow_any_unimported = true