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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. "poethepoet",
  20. "tomli",
  21. "tomli-w",
  22. "chainlit",
  23. "streamlit",
  24. ]
  25. [tool.uv]
  26. override-dependencies = [
  27. "tenacity>=9.0.0",
  28. "aiofiles>=24.1.0",
  29. "chainlit>=2.0.1",
  30. "httpx>=0.27.0",
  31. ]
  32. [tool.uv.workspace]
  33. members = ["packages/*"]
  34. exclude = ["packages/autogen-magentic-one"]
  35. [tool.uv.sources]
  36. agbench = { workspace = true }
  37. autogen-agentchat = { workspace = true }
  38. autogen-core = { workspace = true }
  39. autogen-ext = { workspace = true }
  40. autogen-test-utils = { workspace = true }
  41. autogenstudio = { workspace = true }
  42. component-schema-gen = { workspace = true }
  43. magentic-one-cli = { workspace = true }
  44. [tool.ruff]
  45. line-length = 120
  46. fix = true
  47. target-version = "py310"
  48. [tool.ruff.format]
  49. docstring-code-format = true
  50. [tool.ruff.lint]
  51. select = ["E", "F", "W", "B", "Q", "I", "ASYNC", "T20"]
  52. ignore = ["F401", "E501"]
  53. [tool.ruff.lint.flake8-tidy-imports]
  54. [tool.ruff.lint.flake8-tidy-imports.banned-api]
  55. "unittest".msg = "Use `pytest` instead."
  56. [tool.mypy]
  57. strict = true
  58. python_version = "3.10"
  59. ignore_missing_imports = true
  60. # from https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
  61. disallow_untyped_defs = true
  62. no_implicit_optional = true
  63. check_untyped_defs = true
  64. warn_return_any = true
  65. show_error_codes = true
  66. warn_unused_ignores = false
  67. disallow_incomplete_defs = true
  68. disallow_untyped_decorators = true
  69. disallow_any_unimported = true
  70. [tool.pyright]
  71. include = ["src", "tests", "samples"]
  72. exclude = ["samples/core_xlang_hello_python_agent/protos"]
  73. typeCheckingMode = "strict"
  74. reportUnnecessaryIsInstance = false
  75. reportMissingTypeStubs = false
  76. [tool.poe.tasks]
  77. fmt = "python run_task_in_pkgs_if_exist.py fmt"
  78. format.ref = "fmt"
  79. lint = "python run_task_in_pkgs_if_exist.py lint"
  80. pyright = "python run_task_in_pkgs_if_exist.py pyright"
  81. mypy = "python run_task_in_pkgs_if_exist.py mypy"
  82. test = "python run_task_in_pkgs_if_exist.py test"
  83. markdown-code-lint = """python check_md_code_blocks.py ../README.md ./packages/autogen-core/docs/src/**/*.md ./packages/autogen-magentic-one/README.md"""
  84. samples-code-check = """pyright ./samples"""
  85. check = ["fmt", "lint", "pyright", "mypy", "test", "markdown-code-lint", "samples-code-check"]
  86. gen-proto = [
  87. { 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" },
  88. { script = "fixup_generated_files:main" }
  89. ]
  90. 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"
  91. [[tool.poe.tasks.gen-test-proto.sequence]]
  92. 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"
  93. [[tool.poe.tasks.gen-test-proto.sequence]]
  94. 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"
  95. [tool.pytest.ini_options]
  96. markers = [
  97. "grpc: tests invoking gRPC functionality",
  98. ]