mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-17 22:31:29 -05:00
3
python/teams/team-one/examples/example.py
Normal file
3
python/teams/team-one/examples/example.py
Normal file
@@ -0,0 +1,3 @@
|
||||
import team_one
|
||||
|
||||
print(team_one.ABOUT)
|
||||
86
python/teams/team-one/pyproject.toml
Normal file
86
python/teams/team-one/pyproject.toml
Normal file
@@ -0,0 +1,86 @@
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "team-one"
|
||||
version = "0.0.1"
|
||||
description = ''
|
||||
readme = "readme.md"
|
||||
requires-python = ">=3.10"
|
||||
license = "MIT"
|
||||
keywords = []
|
||||
classifiers = [
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
]
|
||||
dependencies = [
|
||||
"agnext@{root:parent:parent:uri}",
|
||||
]
|
||||
|
||||
[tool.hatch.envs.default]
|
||||
installer = "uv"
|
||||
dependencies = [
|
||||
"pyright==1.1.368",
|
||||
"mypy==1.10.0",
|
||||
"ruff==0.4.8",
|
||||
"pytest"
|
||||
]
|
||||
|
||||
[tool.hatch.envs.default.extra-scripts]
|
||||
pip = "{env:HATCH_UV} pip {args}"
|
||||
|
||||
[tool.hatch.envs.default.scripts]
|
||||
fmt = "ruff format"
|
||||
lint = "ruff check"
|
||||
test = "pytest -n auto"
|
||||
check = [
|
||||
"ruff format",
|
||||
"ruff check --fix",
|
||||
"pyright",
|
||||
"mypy --non-interactive --install-types",
|
||||
"pytest",
|
||||
]
|
||||
|
||||
[tool.hatch.metadata]
|
||||
allow-direct-references = true
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 120
|
||||
fix = true
|
||||
exclude = ["build", "dist"]
|
||||
target-version = "py310"
|
||||
include = ["src/**", "examples/*.py"]
|
||||
|
||||
[tool.ruff.format]
|
||||
docstring-code-format = true
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "W", "B", "Q", "I", "ASYNC"]
|
||||
ignore = ["F401", "E501"]
|
||||
|
||||
[tool.mypy]
|
||||
files = ["src", "examples", "tests"]
|
||||
|
||||
strict = true
|
||||
python_version = "3.10"
|
||||
ignore_missing_imports = true
|
||||
|
||||
# from https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
|
||||
disallow_untyped_defs = true
|
||||
no_implicit_optional = true
|
||||
check_untyped_defs = true
|
||||
warn_return_any = true
|
||||
show_error_codes = true
|
||||
warn_unused_ignores = false
|
||||
|
||||
disallow_incomplete_defs = true
|
||||
disallow_untyped_decorators = true
|
||||
disallow_any_unimported = true
|
||||
|
||||
[tool.pyright]
|
||||
include = ["src", "tests", "examples"]
|
||||
typeCheckingMode = "strict"
|
||||
reportUnnecessaryIsInstance = false
|
||||
reportMissingTypeStubs = false
|
||||
0
python/teams/team-one/readme.md
Normal file
0
python/teams/team-one/readme.md
Normal file
1
python/teams/team-one/src/team_one/__init__.py
Normal file
1
python/teams/team-one/src/team_one/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
ABOUT = "This is team one."
|
||||
0
python/teams/team-one/src/team_one/py.typed
Normal file
0
python/teams/team-one/src/team_one/py.typed
Normal file
6
python/teams/team-one/tests/test_example.py
Normal file
6
python/teams/team-one/tests/test_example.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import team_one
|
||||
|
||||
def test_about() -> None:
|
||||
about = team_one.ABOUT
|
||||
|
||||
assert isinstance(about, str)
|
||||
Reference in New Issue
Block a user