-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (106 loc) · 3.05 KB
/
pyproject.toml
File metadata and controls
117 lines (106 loc) · 3.05 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
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "hime"
version = "1.0.0"
description = "Health Intelligence Management Engine — autonomous LLM agent platform for wearable health data analysis"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
authors = [{name = "Hime Organisation"}]
keywords = ["health", "agent", "llm", "wearable", "apple-watch", "healthkit", "self-hosted"]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]
dependencies = [
"fastapi==0.109.0",
"uvicorn[standard]==0.27.0",
"websockets>=13.0,<15",
"python-multipart==0.0.6",
"pydantic>=2.5,<3",
"pydantic-settings>=2.1,<3",
"python-dotenv==1.0.0",
"pyyaml>=6.0,<7",
"pandas==2.1.4",
"numpy==1.26.3",
"pyarrow==14.0.2",
"httpx==0.28.1",
"lark-oapi>=1.4.0",
"croniter>=1.3",
"openai>=1.50",
"anthropic>=0.40",
"google-genai>=1.51",
"scipy>=1.11",
"statsmodels>=0.14",
"scikit-learn>=1.3",
"matplotlib>=3.7,<4",
"ipython>=8.0,<9",
]
[project.optional-dependencies]
bedrock = ["boto3>=1.34"]
dev = ["pytest>=7.0", "pytest-asyncio>=0.23", "ruff>=0.4"]
[project.urls]
Homepage = "https://github.com/thinkwee/HiMe"
Repository = "https://github.com/thinkwee/HiMe"
Issues = "https://github.com/thinkwee/HiMe/issues"
Documentation = "https://github.com/thinkwee/HiMe"
[project.scripts]
hime = "backend.main:main"
[tool.setuptools.packages.find]
include = ["backend*"]
[tool.setuptools.package-data]
"backend" = ["telegram/messages.json", "agent/tools/tools.json", "i18n/locales/*.json"]
[tool.ruff]
line-length = 100
target-version = "py310"
extend-exclude = [
"data",
"memory",
"logs",
"frontend",
"ios",
"GLOBEM",
"APPLE",
".venv",
"venv",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = [
"E501", # line-too-long (handled by formatter)
"B008", # function calls in argument defaults (FastAPI Depends pattern)
"B904", # raise without `from` inside except (used pervasively)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["B011"] # allow assert False in tests
"backend/agent/tools/page_helpers.py" = ["F821"] # references injected globals (HEALTH_DB_PATH, MEMORY_DB_PATH)
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::UserWarning",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]