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 4.2 kB

Graphrag integration (#4612) * add initial global search draft * add graphrag dep * fix local search embedding * linting * add from config constructor * remove draft notebook * update config factory and add docstrings * add graphrag sample * add sample prompts * update readme * update deps * Add API docs * Update python/samples/agentchat_graphrag/requirements.txt * Update python/samples/agentchat_graphrag/requirements.txt * update docstrings with snippet and doc ref * lint * improve set up instructions in docstring * lint * update lock * Update python/packages/autogen-ext/src/autogen_ext/tools/graphrag/_global_search.py Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> * Update python/packages/autogen-ext/src/autogen_ext/tools/graphrag/_local_search.py Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> * add unit tests * update lock * update uv lock * add docstring newlines * stubs and typing on graphrag tests * fix docstrings * fix mypy error * + linting and type fixes * type fix graphrag sample * Update python/packages/autogen-ext/src/autogen_ext/tools/graphrag/_global_search.py Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> * Update python/packages/autogen-ext/src/autogen_ext/tools/graphrag/_local_search.py Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> * Update python/samples/agentchat_graphrag/requirements.txt Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> * update overrides * fix docstring client imports * additional docstring fix * add docstring missing import * use openai and fix db path * use console for displaying messages * add model config and gitignore * update readme * lint * Update python/samples/agentchat_graphrag/README.md * Update python/samples/agentchat_graphrag/README.md * Comment remaining azure config --------- Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com> Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
1 year ago
Graphrag integration (#4612) * add initial global search draft * add graphrag dep * fix local search embedding * linting * add from config constructor * remove draft notebook * update config factory and add docstrings * add graphrag sample * add sample prompts * update readme * update deps * Add API docs * Update python/samples/agentchat_graphrag/requirements.txt * Update python/samples/agentchat_graphrag/requirements.txt * update docstrings with snippet and doc ref * lint * improve set up instructions in docstring * lint * update lock * Update python/packages/autogen-ext/src/autogen_ext/tools/graphrag/_global_search.py Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> * Update python/packages/autogen-ext/src/autogen_ext/tools/graphrag/_local_search.py Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> * add unit tests * update lock * update uv lock * add docstring newlines * stubs and typing on graphrag tests * fix docstrings * fix mypy error * + linting and type fixes * type fix graphrag sample * Update python/packages/autogen-ext/src/autogen_ext/tools/graphrag/_global_search.py Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> * Update python/packages/autogen-ext/src/autogen_ext/tools/graphrag/_local_search.py Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> * Update python/samples/agentchat_graphrag/requirements.txt Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> * update overrides * fix docstring client imports * additional docstring fix * add docstring missing import * use openai and fix db path * use console for displaying messages * add model config and gitignore * update readme * lint * Update python/samples/agentchat_graphrag/README.md * Update python/samples/agentchat_graphrag/README.md * Comment remaining azure config --------- Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com> Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. [dependency-groups]
  2. dev = [
  3. "pyright==1.1.389",
  4. "mypy==1.13.0",
  5. "ruff==0.4.8",
  6. "pytest",
  7. "pytest-asyncio",
  8. "pytest-cov",
  9. "pytest-xdist",
  10. "typer",
  11. "rich",
  12. "polars",
  13. "pytest_mock",
  14. "poethepoet",
  15. "packaging",
  16. "grpcio-tools~=1.70.0",
  17. "mypy-protobuf",
  18. "cookiecutter",
  19. "tomli",
  20. "tomli-w",
  21. "chainlit",
  22. "streamlit",
  23. ]
  24. [tool.uv]
  25. override-dependencies = [
  26. "tenacity>=9.0.0",
  27. "aiofiles>=24.1.0",
  28. "chainlit>=2.0.1",
  29. "httpx>=0.27.0",
  30. ]
  31. [tool.uv.workspace]
  32. members = ["packages/*"]
  33. exclude = ["packages/autogen-magentic-one"]
  34. [tool.uv.sources]
  35. agbench = { workspace = true }
  36. autogen-agentchat = { workspace = true }
  37. autogen-core = { workspace = true }
  38. autogen-ext = { workspace = true }
  39. autogen-test-utils = { workspace = true }
  40. autogenstudio = { workspace = true }
  41. component-schema-gen = { workspace = true }
  42. magentic-one-cli = { workspace = true }
  43. [tool.ruff]
  44. line-length = 120
  45. fix = true
  46. target-version = "py310"
  47. [tool.ruff.format]
  48. docstring-code-format = true
  49. [tool.ruff.lint]
  50. select = ["E", "F", "W", "B", "Q", "I", "ASYNC", "T20"]
  51. ignore = ["F401", "E501"]
  52. [tool.ruff.lint.flake8-tidy-imports]
  53. [tool.ruff.lint.flake8-tidy-imports.banned-api]
  54. "unittest".msg = "Use `pytest` instead."
  55. [tool.mypy]
  56. strict = true
  57. python_version = "3.10"
  58. ignore_missing_imports = true
  59. # from https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
  60. disallow_untyped_defs = true
  61. no_implicit_optional = true
  62. check_untyped_defs = true
  63. warn_return_any = true
  64. show_error_codes = true
  65. warn_unused_ignores = false
  66. disallow_incomplete_defs = true
  67. disallow_untyped_decorators = true
  68. disallow_any_unimported = true
  69. [tool.pyright]
  70. include = ["src", "tests", "samples"]
  71. exclude = ["samples/core_xlang_hello_python_agent/protos"]
  72. typeCheckingMode = "strict"
  73. reportUnnecessaryIsInstance = false
  74. reportMissingTypeStubs = false
  75. [tool.poe.tasks]
  76. fmt = "python run_task_in_pkgs_if_exist.py fmt"
  77. format.ref = "fmt"
  78. lint = "python run_task_in_pkgs_if_exist.py lint"
  79. pyright = "python run_task_in_pkgs_if_exist.py pyright"
  80. mypy = "python run_task_in_pkgs_if_exist.py mypy"
  81. test = "python run_task_in_pkgs_if_exist.py test"
  82. markdown-code-lint = """python check_md_code_blocks.py ../README.md ./packages/autogen-core/docs/src/**/*.md ./packages/autogen-magentic-one/README.md"""
  83. samples-code-check = """pyright ./samples"""
  84. check = ["fmt", "lint", "pyright", "mypy", "test", "markdown-code-lint", "samples-code-check"]
  85. gen-proto = [
  86. { cmd = "python -m grpc_tools.protoc --python_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --grpc_python_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --mypy_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --mypy_grpc_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --proto_path ../protos/ agent_worker.proto --proto_path ../protos/ cloudevent.proto" },
  87. { script = "fixup_generated_files:main" }
  88. ]
  89. gen-proto-samples = "python -m grpc_tools.protoc --python_out=./samples/core_xlang_hello_python_agent/protos --grpc_python_out=./samples/core_xlang_hello_python_agent/protos --mypy_out=./samples/core_xlang_hello_python_agent/protos --mypy_grpc_out=./samples/core_xlang_hello_python_agent/protos --proto_path ../dotnet/src/Microsoft.AutoGen/Agents/protos/ agent_events.proto"
  90. [[tool.poe.tasks.gen-test-proto.sequence]]
  91. cmd = "python -m grpc_tools.protoc --python_out=./packages/autogen-core/tests/protos --grpc_python_out=./packages/autogen-core/tests/protos --mypy_out=./packages/autogen-core/tests/protos --mypy_grpc_out=./packages/autogen-core/tests/protos --proto_path ./packages/autogen-core/tests/protos serialization_test.proto"
  92. [[tool.poe.tasks.gen-test-proto.sequence]]
  93. cmd = "python -m grpc_tools.protoc --python_out=./packages/autogen-ext/tests/protos --grpc_python_out=./packages/autogen-ext/tests/protos --mypy_out=./packages/autogen-ext/tests/protos --mypy_grpc_out=./packages/autogen-ext/tests/protos --proto_path ./packages/autogen-core/tests/protos serialization_test.proto"
  94. [tool.pytest.ini_options]
  95. markers = [
  96. "grpc: tests invoking gRPC functionality",
  97. ]