-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (138 loc) · 4.12 KB
/
Copy pathpyproject.toml
File metadata and controls
150 lines (138 loc) · 4.12 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
138
139
140
141
142
143
144
145
146
147
148
149
150
[project]
name = "raven-agent"
version = "0.4.0"
description = "Raven — 2-in-1 AI platform: RavenCode (autonomous coding agent) + RavenFlow (persistent workflow gateway)"
authors = [
{ name = "ssrjkk" },
]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"fastapi>=0.115.0,<1.0",
"uvicorn[standard]>=0.34.0,<1.0",
"httpx>=0.28.0,<1.0",
"aiosqlite>=0.20.0,<1.0",
"pydantic>=2.10.0,<3.0",
"pydantic-settings>=2.7.0,<3.0",
"loguru>=0.7.3,<1.0",
"apscheduler>=3.10,<4.0",
"beautifulsoup4>=4.12,<5.0",
"lxml>=5.2,<6.0",
"feedparser>=6.0,<7.0",
"click>=8.0,<9.0",
"rich>=13.0,<16.0",
"python-telegram-bot>=21.0,<23.0",
"python-dotenv>=1.0,<2.0",
"numpy>=1.26,<3.0",
"PyYAML>=6.0,<7.0",
"uvloop>=0.19.0,<1.0",
"orjson>=3.10.0,<4.0",
"Pillow>=10.0,<12.0",
"PyMuPDF>=1.24.0,<2.0",
"python-docx>=1.1.0,<2.0",
"python-pptx>=1.0.0,<2.0",
"openpyxl>=3.1.0,<4.0",
]
[project.optional-dependencies]
discord = ["discord.py>=2.3"]
slack = ["slack-sdk>=3.27"]
docker = ["docker>=7.0"]
secrets = ["cryptography>=41.0"]
service-win = ["pywin32>=306"]
tui = ["textual>=1.0"]
tracing = ["opentelemetry-api>=1.25", "opentelemetry-sdk>=1.25"]
numba = ["numba>=0.60,<1.0"]
voice = ["sounddevice>=0.5"]
browser = ["playwright>=1.44,<2.0"]
vector = ["chromadb>=0.5.0,<2.0"]
rag = ["sentence-transformers>=3.0,<4.0"]
ml = [
"torch>=2.0,<3.0",
"transformers>=4.40,<5.0",
"peft>=0.10,<1.0",
"datasets>=2.20,<3.0",
]
ner = ["spacy>=3.7,<4.0"]
postgres = ["asyncpg>=0.29"]
crdt = ["y-py>=0.4,<1.0"]
profiling = ["py-spy>=0.3,<1.0"]
chaos = ["psutil>=5.9,<7.0"]
metrics = ["prometheus-client>=0.19,<1.0"]
redis = ["redis>=5.0,<6.0"]
dev = [
"pytest>=8.0,<10.0",
"pytest-asyncio>=0.24,<2.0",
"pytest-cov>=5.0,<7.0",
"pytest-timeout>=2.3,<4.0",
"pytest-github-actions-annotate-failures>=0.2,<1.0",
"allure-pytest>=2.13,<3.0",
"coverage>=7.5,<8.0",
"cryptography>=41.0,<45.0",
"ruff>=0.5,<1.0",
"mypy>=1.10,<3.0",
"pre-commit>=3.0,<5.0",
"testcontainers[redis]>=4.0.0,<5.0",
]
media = ["ffmpeg-python>=0.2.0,<1.0"]
re = ["capstone>=5.0,<6.0", "pyelftools>=0.31,<1.0", "pefile>=2023,<2024"]
all = ["raven-agent[discord,slack,docker,secrets,service-win,tui,tracing,voice,dev,browser,vector,numba,crdt,profiling,chaos,postgres,media]"]
[project.scripts]
raven = "raven.cli.main:cli"
ravencode = "ravencode.cli.main:cli"
ravenflow = "raven.gateway.daemon:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["raven", "aios", "ravencode"]
[tool.mypy]
strict = true
disallow_untyped_defs = false
disallow_untyped_calls = false
disallow_incomplete_defs = false
ignore_missing_imports = true
warn_unused_ignores = true
show_error_codes = true
exclude = ['deploy/', 'build/', '\.git/', 'extension/', 'scripts/']
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = """
--alluredir=allure-results
--cov=raven
--cov=aios
--cov=ravencode
--cov-report=term-missing
--cov-report=xml
--tb=short
--no-header
"""
asyncio_mode = "auto"
log_cli_level = "WARNING"
markers = [
"pact: Pact contract tests (provider-specific)",
"load: k6 load test wrapper",
"slow: tests that take >5s",
"unit: Fast unit tests with no external dependencies",
"integration: Tests requiring DB, NATS, or external services",
"e2e: Full end-to-end tests",
"async: Coroutine-based async tests",
"security: Security-oriented tests",
"rag: RAG/embedding pipeline tests",
"agent: Agent FSM tests",
"smoke: Quick smoke/sanity tests",
]
[tool.ruff]
line-length = 120
target-version = "py311"
exclude = [".pre-commit-config.yaml"]
[tool.ruff.lint]
select = ["ASYNC100", "E", "F", "W", "I", "N", "UP", "B", "SIM", "S"]
ignore = ["E501", "SIM108", "S101", "S104"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = ["F401", "ANN", "S101", "S102", "S105", "S106", "S108", "S603", "S604", "S607", "B017", "N806", "SIM117"]
"*__init__.py" = ["F401"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"