-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (122 loc) · 3.67 KB
/
Copy pathpyproject.toml
File metadata and controls
137 lines (122 loc) · 3.67 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
127
128
129
130
131
132
133
134
135
136
137
[project]
name = "evolver"
version = "1.89.14"
description = "A GEP-powered self-evolution engine for AI agents (Python port of @evomap/evolver)"
readme = "README.md"
license = { text = "GPL-3.0-or-later" }
requires-python = ">=3.12"
authors = [
{ name = "EvoMap", email = "team@evomap.ai" },
]
keywords = ["evomap", "ai", "evolution", "gep", "meta-learning", "self-repair", "automation", "agent"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"click>=8.1",
"pydantic>=2.9",
"pydantic-settings>=2.5",
"python-dotenv>=1.0",
"httpx[http2]>=0.27",
"fastapi>=0.115",
"uvicorn[standard]>=0.32",
"cryptography>=43.0",
"filelock>=3.16",
"psutil>=6.0",
"GitPython>=3.1",
"boto3>=1.35",
"keyring>=25.4",
]
[project.scripts]
evolver = "evolver.cli:main"
[project.urls]
Homepage = "https://evomap.ai"
Repository = "https://github.com/EvoMap/evolver"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/evolver"]
[dependency-groups]
dev = [
"pytest>=8.3",
"pytest-asyncio>=0.24",
"pytest-cov>=6.0",
"ruff>=0.7",
"mypy>=1.13",
"respx>=0.21",
"freezegun>=1.5",
]
[tool.uv]
default-groups = ["dev"]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = [
"E",
"F",
"W",
"I",
"N",
"UP",
"B",
"C4",
"SIM",
"ARG",
"PL",
"RUF",
]
ignore = [
"PLR2004", # magic value comparisons often useful in port
"PLR0913", # many arguments inherited from Node design
]
[tool.ruff.lint.per-file-ignores]
# Self-contained HTML / embedded hook scripts — line breaks harm readability
"src/evolver/webui/dashboard.py" = ["E501"]
"src/evolver/adapters/opencode.py" = ["E501"]
"src/evolver/adapters/setup_hooks.py" = ["E501"]
# Proxy route modules — lazy httpx import, nested async with, many error
# returns, and unused `request` param are the established pattern
# (matches messages_route.py).
"src/evolver/proxy/router/gemini_route.py" = ["E501", "PLC0415", "SIM117", "ARG001", "PLR0911"]
"src/evolver/proxy/router/vertex_route.py" = ["E501", "PLC0415", "SIM117", "ARG001", "PLR0911"]
"src/evolver/proxy/router/ollama_route.py" = ["E501", "PLC0415", "SIM117", "ARG001", "PLR0911"]
"src/evolver/proxy/router/responses_route.py" = ["E501", "PLC0415", "SIM117", "ARG001", "PLR0911"]
"src/evolver/proxy/router/messages_route.py" = ["PLC0415", "SIM117", "PLR0911", "ARG001"]
"src/evolver/proxy/router/model_router.py" = ["PLR0911"]
"src/evolver/proxy/router/models_route.py" = ["PLC0415"]
# Lifecycle manager — pre-established async patterns (lazy imports, task creation, ternary)
"src/evolver/proxy/lifecycle/manager.py" = ["B904", "SIM102", "RUF006", "PLC0415", "SIM108", "N817"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_ignores = true
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = "-ra --strict-markers"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
]
[tool.coverage.run]
source = ["src"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]