-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (103 loc) · 2.84 KB
/
pyproject.toml
File metadata and controls
122 lines (103 loc) · 2.84 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
[project]
name = "asero"
description = "Another semantic router, with some particularities that may, or may not, suit your need."
keywords = ["bot", "llm", "semantic router", "mcp", "model context protocol", "ai", "research"]
license = "BSD-3-Clause"
license-files = ["LICENSE"]
readme = "README.md"
authors = [
{name = "Eloy Lafuente (stronk7)", email = "stronk7@stronk7.com"},
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Environment :: Console",
"Private :: Do Not Upload",
]
dynamic = ["version"]
requires-python = ">=3.12"
dependencies = [
"colorlog ~= 6.10.1",
"numpy ~= 2.4.3",
"openai >= 2.29.0, < 3.0.0",
"python-dotenv ~= 1.2.2",
"PyYAML ~= 6.0.3",
"tqdm ~= 4.67.3",
]
[project.optional-dependencies]
dev = [
"build ~= 1.4.0",
"codespell ~= 2.4.2",
"conventional-pre-commit ~= 4.4.0",
"coverage ~= 7.13.5",
"detect-secrets ~= 1.5.0",
"git-cliff ~= 2.12.0",
"pre-commit ~= 4.5.1",
"pyright ~= 1.1.408",
"ruff ~= 0.15.6",
]
[project.scripts]
asero = "asero.main:main"
augment = "asero.augment:main"
[project.urls]
Homepage = "https://github.com/moodlehq/asero"
Documentation = "https://github.com/moodlehq/asero/blob/main/README.md"
Repository = "https://git.in.moodle.com/research/asero.git"
[tool.coverage.run]
branch = true
source = [
"asero",
]
omit = [
"tests"
]
command_line = "-m unittest discover -t . -s tests"
[tool.pyright]
include = [
"asero"
]
exclude = [
"tests"
]
[tool.ruff]
line-length = 88
indent-width = 4
preview = true
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules
select = [
"E", # pycodestyle (errors, all them)
"F", # pyflakes
"I", # imports
"N", # pep8 naming
"D", # pydocstyle
"Q", # flake8-quotes
"ASYNC",# flake8-async
"CPY", # copyright header
"EM", # flake8-errmsg
"UP", # pyupgrade
]
ignore = [
"D203", # 1 blank line required before class docstring (incompatible with D211, that we use)
"D213", # Multi-line docstring summary should start at the second line (incompatible with D212, that we use)
]
[tool.ruff.lint.isort]
lines-between-types = 1
[tool.ruff.lint.pycodestyle]
max-line-length = 120
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F401"] # Ignore the unused imports in init files because we use them to make easier package paths.
"tests/**/test_**.py" = ["D101", "D102", "D103"] # Don't require doc strings for tests
[tool.codespell]
ignore-words-list = [
"upport" # Part of regular expressions in cliff.toml
]
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.setuptools.packages.find]
include = ["asero"]