forked from elroy-bot/elroy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
165 lines (148 loc) · 4.03 KB
/
Copy pathpyproject.toml
File metadata and controls
165 lines (148 loc) · 4.03 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
[project]
name = "elroy"
version = "0.5.0"
description = ""
authors = [
{ name = "Elroy Bot", email = "bot@elroy.ai" }
]
readme = "README.md"
requires-python = ">=3.12,<3.13"
dependencies = [
"sqlalchemy==2.0.37",
"pyyaml==6.0.2",
"requests==2.32.3",
"tiktoken==0.9.0",
"rich==14.3.3",
"toolz==1.0.0",
"alembic==1.14.1",
"pytz==2024.2",
"sqlmodel==0.0.22",
"docstring-parser==0.16",
"pygments==2.19.2",
"litellm==1.75.5.post1",
"semantic-version==2.10.0",
"scikit-learn==1.6.1",
"lock==2018.3.25.2110",
"importlib-resources==6.5.2",
"apscheduler==3.11.0",
"chromadb==1.4.1",
"textual==8.0.2",
]
[project.optional-dependencies]
dev = [
"bumpversion==0.6.0",
"pydantic==2.11.4",
"ruff==0.15.0",
"ty==0.0.16",
"pytest==8.3.4",
"fawltydeps==0.18.0",
"testcontainers==4.9.1",
"lorem-text==2.1",
"pytest-mock==3.14.0",
"langchain-core==0.3.31",
"discord-py==2.4.0",
"pytest-cov==6.0.0",
"pytest-rerunfailures==15.0",
]
docs = [
"mkdocs==1.4.3",
"mkdocs-git-revision-date-localized-plugin==1.3.0",
"mkdocs-rss-plugin==1.2.0",
"mkdocs-git-revision-date-localized-plugin==1.3.0",
"mkdocs-rss-plugin==1.2.0",
"mkdocs-blog-plugin==0.25",
"mkdocs-material==9.1.20",
"mkdocs-macros-plugin==1.3.9",
]
[project.scripts]
elroy = "elroy.ui.app:main"
[tool.ruff]
line-length = 140
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"RET", # flake8-return
"PTH", # use pathlib
"RUF", # Ruff-specific rules
"TRY", # exception handling hygiene
"PERF",# perflint
"FURB",# refurb suggestions
"C90", # mccabe complexity
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR0915", # too many statements
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"N805", # first argument of a method should be named 'self'
"TRY002", # custom exception boilerplate is too noisy for this codebase
"TRY003", # inline exception messages are acceptable here
"TRY300", # prefer direct returns in try blocks where clearer
"TRY301", # helper extraction for single raises is not worth the indirection
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pylint]
max-branches = 16
max-args = 7
max-statements = 60
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["ARG001", "ARG002", "C901", "TRY003"]
"elroy/db/sqlite/alembic/env.py" = ["ARG001"]
"elroy/core/ctx.py" = ["PLR0913"]
"elroy/io/textual_app.py" = ["C901"]
"elroy/llm/client.py" = ["C901"]
"elroy/messenger/messenger.py" = ["C901"]
"elroy/repository/documents/background.py" = ["C901"]
"elroy/repository/documents/operations.py" = ["C901"]
"elroy/repository/memories/background.py" = ["C901"]
"elroy/tools/schema.py" = ["C901"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ty.environment]
python-version = "3.12"
[tool.ty.src]
include = ["elroy/**/*.py", "tests/**/*.py"]
exclude = [".venv/**", "build/**", "dist/**"]
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
"ignore::DeprecationWarning",
"ignore:.*Pydantic serializer warnings.*:UserWarning",
]
log_cli = true
log_level = "INFO"
[tool.coverage.run]
source = ["elroy"]
omit = [
"tests/*",
"examples/*",
"scripts/*"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"pass"
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel.force-include]
"claude-skills" = "claude-skills"
[tool.hatch.build.targets.sdist.force-include]
"claude-skills" = "claude-skills"