-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (73 loc) · 1.76 KB
/
Copy pathpyproject.toml
File metadata and controls
84 lines (73 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[project]
name = "droid-sdk"
version = "0.4.0"
description = "Python asyncio SDK for Factory Droid"
readme = "README.md"
license = {text = "Apache-2.0"}
requires-python = ">=3.10"
dependencies = [
"pydantic>=2.0",
"typing-extensions>=4.4",
]
[project.optional-dependencies]
mcp = [
"mcp>=1.27,<2",
"starlette>=0.40",
"uvicorn>=0.31,<1",
]
[dependency-groups]
dev = [
"pytest",
"pytest-asyncio",
"mypy",
"pyright",
"ruff",
"pytest-cov",
# The dev environment always includes the "mcp" extra's dependencies so
# the in-process MCP server tests run without extra flags.
"mcp>=1.27,<2",
"starlette>=0.40",
"uvicorn>=0.31,<1",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/droid_sdk"]
[tool.hatch.build.targets.sdist]
exclude = ["/tests"]
[tool.pytest.ini_options]
asyncio_mode = "strict"
testpaths = ["tests"]
[tool.mypy]
strict = true
plugins = ["pydantic.mypy"]
files = ["src", "tests/typing/positive.py"]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.pyright]
typeCheckingMode = "strict"
include = ["src", "tests/typing/positive.py"]
pythonVersion = "3.10"
[tool.ruff]
target-version = "py310"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # ruff-specific rules
"PYI", # flake8-pyi typing quality
"PIE", # flake8-pie misc lints
"C4", # flake8-comprehensions
"TRY203", # useless re-raise
]