-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (99 loc) · 2.66 KB
/
Copy pathpyproject.toml
File metadata and controls
106 lines (99 loc) · 2.66 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "aiagentgres"
version = "0.2.0"
description = "Personal AI Agent (Telegram + Groq) inspired by Hermes Agent (Nous Research)"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [
{ name = "jagres0039" },
]
dependencies = [
"python-telegram-bot>=20.7,<22",
"groq>=0.11.0",
"python-dotenv>=1.0.0",
"apscheduler>=3.10.4",
"pytz>=2024.1",
"tavily-python>=0.5.0",
"google-auth>=2.29.0",
"google-auth-oauthlib>=1.2.0",
"google-api-python-client>=2.130.0",
"requests>=2.32.0",
"pandas>=2.2.0",
"numpy>=1.26.0",
"python-binance>=1.0.19",
"vaderSentiment>=3.3.2",
"pymupdf>=1.24.0",
"python-docx>=1.1.0",
"openpyxl>=3.1.2",
"aiosqlite>=0.20.0",
]
[project.optional-dependencies]
dev = [
"ruff>=0.6.0",
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pre-commit>=3.7",
]
browser = [
"playwright>=1.45",
]
[tool.setuptools]
py-modules = [
"agent",
"main",
"config",
"memory",
"auth",
"paths",
"logging_setup",
"skill_loader",
"skill_executor",
"skill_writer",
"morning_briefing",
"auto_trader",
"webhook_server",
"backtest",
"backtest_6bulan",
"backtest_breaker",
]
[tool.ruff]
line-length = 120
target-version = "py310"
extend-exclude = [
"agent_backup.py",
"tmp_*.py",
"outputs",
"output_office",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter, plus existing legacy code)
"E701", # multiple statements on one line (colon) — pakai gaya `if x: do_y()` di code lama
"E702", # multiple statements on one line (semicolon) — sama
"E722", # bare except — used heavily in agent.py for resilience, not fixing in Phase 0
"E402", # module import not at top — auto_trader.py & backtest.py butuh sys.path.insert duluan
"B904", # raise ... from err — not enforcing in Phase 0
"B007", # unused loop variable — legacy code patterns
"B008", # function call in default argument — telegram-bot uses this pattern
"UP015", # redundant open mode — Phase 0 doesn't touch this
"UP032", # f-string instead of .format() — out of scope for Phase 0
"UP031", # printf-style % formatting — out of scope for Phase 0
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["F401", "F841"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
asyncio_mode = "auto"