-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (86 loc) · 2.19 KB
/
pyproject.toml
File metadata and controls
99 lines (86 loc) · 2.19 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
[build-system]
requires = ["setuptools>=69", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "tiny-agent-os"
version = "1.2.27"
description = "Python agent loop"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [{name = "Fabian"}]
keywords = ["agent", "llm", "openrouter", "streaming"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"httpx>=0.28.0",
"pydantic>=2,<3",
]
[project.optional-dependencies]
examples = [
"python-dotenv>=1.0.0",
]
[dependency-groups]
dev = [
"ruff>=0.9.0",
"mypy>=1.14.0",
"pre-commit>=4.0.0",
"pytest>=8.0.0",
"pytest-asyncio>=0.25.0",
"hypothesis>=6.0.0",
"python-dotenv>=1.0.0",
"grimp>=3.0",
"vulture>=2.11.0",
"pylint>=3.0.0",
]
[tool.setuptools.packages.find]
include = ["tinyagent*"]
[tool.setuptools.package-data]
tinyagent = ["py.typed", "_alchemy*.so", "_alchemy*.pyd", "_alchemy*.dylib"]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "C90", "I", "N", "UP", "B", "SIM"]
ignore = [
"UP007", # Allow Union[] for TypeAlias compatibility
"SIM117", # Nested with statements can be more readable for async context managers
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
known-first-party = ["tinyagent"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_ignores = true
ignore_missing_imports = true
disallow_untyped_defs = true
check_untyped_defs = true
files = ["."]
exclude = '(^|/)(\.venv|scripts/)'
explicit_package_bases = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.lint]
max-file-lines = 500
[tool.archlint]
library_root = "tinyagent"
core_modules = [
"agent",
"agent_loop",
"agent_tool_execution",
"agent_types",
"openrouter_provider",
"proxy",
"proxy_event_handlers",
]
nih_filenames = ["dotenv.py", "six.py", "compat.py"]