-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
51 lines (43 loc) · 1.11 KB
/
Copy pathpyproject.toml
File metadata and controls
51 lines (43 loc) · 1.11 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.backends.legacy:build"
[project]
name = "koby"
version = "0.1.0"
description = "KOBy"
requires-python = ">=3.11"
readme = "README.md"
[tool.setuptools.packages.find]
# Make both `backend` and `scripts` importable from the project root.
# This allows:
# python -m scripts.ingest_knowledge_base
# from backend.rag.pipeline import retrieve
where = ["."]
include = ["backend*", "scripts*"]
[tool.setuptools.package-data]
"backend.evals" = ["dataset/*.json"]
"knowledge_base" = ["*.md"]
# Entry points
[project.scripts]
ingest-kb = "scripts.ingest_knowledge_base:main"
run-evals = "backend.evals.run_evals:main"
# pytest configuration
[tool.pytest.ini_options]
testpaths = ["backend/tests"]
asyncio_mode = "auto"
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
# mypy
[tool.mypy]
python_version = "3.11"
strict = false
ignore_missing_imports = true
warn_return_any = false
# ruff (linting)
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = ["E501"]