-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (114 loc) · 3.46 KB
/
pyproject.toml
File metadata and controls
127 lines (114 loc) · 3.46 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[build-system]
# hatchling >= 1.26.1 avoids License-File in metadata 2.3 (PyPI/twine reject that mix)
requires = ["hatchling>=1.26.1"]
build-backend = "hatchling.build"
[project]
name = "open-agent-spec"
version = "1.5.1"
description = "YAML-first agent specs: run with `oa run` or generate a full Python project with `oa init`."
authors = [{ name = "Andrew Whitehouse", email = "andrewswhitehouse@gmail.com" }]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"typer>=0.9.0",
"pyyaml",
"rich",
"jinja2>=3.0.0",
"setuptools>=69.0.0",
"jsonschema>=4.0.0",
"python-dotenv>=0.19.0",
"tomli>=1.0.0; python_version < '3.11'",
# Runtime: oas_cli.runtime and `oa init`-generated code use DACP adapters.
"dacp>=0.3.3",
]
[project.urls]
Homepage = "https://www.openagentstack.ai"
Repository = "https://github.com/prime-vector/open-agent-spec"
Documentation = "https://github.com/prime-vector/open-agent-spec/blob/main/docs/REFERENCE.md"
[project.optional-dependencies]
# Install open-agent-spec[sdks] if you use `oa init`-generated projects or
# want the full SDK experience. `oa run` uses raw HTTP and needs neither.
sdks = [
"openai>=1.0.0",
"anthropic>=0.3.0",
]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-html>=3.0.0",
"pytest-xdist>=3.0.0",
"allure-pytest>=2.0.0",
"isort>=5.0.0",
"mypy>=1.0.0",
"ruff>=0.15.0,<0.16",
"pre-commit>=3.0.0",
"build>=1.0.0",
"twine>=4.0.0",
"types-PyYAML>=6.0.0",
"types-setuptools>=69.0.0",
"types-toml>=0.10.0",
"types-jsonschema",
# behavioural-contracts is optional at runtime; pinned here for dev/CI
"behavioural-contracts==0.1.3",
# dacp is a runtime dependency above; listed in dev for tests that pin versions
"dacp>=0.3.3",
]
contracts = [
"behavioural-contracts>=0.1.3",
]
[project.scripts]
oa = "oas_cli.main:app"
[tool.hatch.build.targets.wheel]
packages = ["oas_cli"]
include = ["oas_cli/templates/*.yaml", "oas_cli/schemas/*.json"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.mypy]
python_version = "3.10"
warn_return_any = false
warn_unused_configs = true
check_untyped_defs = false
no_implicit_optional = false
warn_redundant_casts = false
warn_unused_ignores = false
warn_no_return = false
warn_unreachable = false
strict_equality = false
ignore_missing_imports = true
disable_error_code = ["has-type"]
# Don't follow imports into pytest/site-packages (avoids pattern-matching errors)
follow_imports = "skip"
# Ignore missing imports for test files
[[tool.mypy.overrides]]
module = "tests.*"
ignore_missing_imports = true
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf" # Use Unix line endings for consistency
skip-magic-trailing-comma = false
docstring-code-format = true
docstring-code-line-length = 100
preview = false # Use stable formatting rules
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"N", # pep8-naming
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line length (handled by formatter)
"E203", # whitespace before ':' (formatter compatibility)
"B008", # do not perform function calls in argument defaults
"RUF022", # __all__ sorting
]
[tool.ruff.lint.per-file-ignores]
"examples/multi-agent/*" = ["N999"] # directory name contains hyphen