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.6 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. [tool.uv.workspace]
  2. members = ["packages/*"]
  3. [tool.uv]
  4. dev-dependencies = [
  5. "pyright==1.1.389",
  6. "mypy==1.13.0",
  7. "ruff==0.4.8",
  8. "pytest",
  9. "pytest-asyncio",
  10. "pytest-xdist",
  11. "typer",
  12. "rich",
  13. "polars",
  14. "pytest_mock",
  15. "poethepoet",
  16. "packaging",
  17. "grpcio-tools~=1.62.0",
  18. "mypy-protobuf",
  19. "cookiecutter",
  20. "poethepoet",
  21. "tomli",
  22. ]
  23. [tool.uv.sources]
  24. autogen-core = { workspace = true }
  25. autogen-ext = { workspace = true }
  26. autogen-agentchat = { workspace = true }
  27. [tool.ruff]
  28. line-length = 120
  29. fix = true
  30. target-version = "py310"
  31. [tool.ruff.format]
  32. docstring-code-format = true
  33. [tool.ruff.lint]
  34. select = ["E", "F", "W", "B", "Q", "I", "ASYNC", "T20"]
  35. ignore = ["F401", "E501"]
  36. [tool.ruff.lint.flake8-tidy-imports]
  37. [tool.ruff.lint.flake8-tidy-imports.banned-api]
  38. "unittest".msg = "Use `pytest` instead."
  39. [tool.mypy]
  40. strict = true
  41. python_version = "3.10"
  42. ignore_missing_imports = true
  43. # from https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
  44. disallow_untyped_defs = true
  45. no_implicit_optional = true
  46. check_untyped_defs = true
  47. warn_return_any = true
  48. show_error_codes = true
  49. warn_unused_ignores = false
  50. disallow_incomplete_defs = true
  51. disallow_untyped_decorators = true
  52. disallow_any_unimported = true
  53. [tool.pyright]
  54. include = ["src", "tests", "samples"]
  55. typeCheckingMode = "strict"
  56. reportUnnecessaryIsInstance = false
  57. reportMissingTypeStubs = false
  58. exclude = ["src/autogen_core/application/protos"]
  59. [tool.poe.tasks]
  60. fmt = "python run_task_in_pkgs_if_exist.py fmt"
  61. format.ref = "fmt"
  62. lint = "python run_task_in_pkgs_if_exist.py lint"
  63. pyright = "python run_task_in_pkgs_if_exist.py pyright"
  64. mypy = "python run_task_in_pkgs_if_exist.py mypy"
  65. test = "python run_task_in_pkgs_if_exist.py test"
  66. check = ["fmt", "lint", "pyright", "mypy", "test"]
  67. gen-proto = "python -m grpc_tools.protoc --python_out=./packages/autogen-core/src/autogen_core/application/protos --grpc_python_out=./packages/autogen-core/src/autogen_core/application/protos --mypy_out=./packages/autogen-core/src/autogen_core/application/protos --mypy_grpc_out=./packages/autogen-core/src/autogen_core/application/protos --proto_path ../protos/ agent_worker.proto --proto_path ../protos/ cloudevent.proto"
  68. gen-test-proto = "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"