-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
69 lines (63 loc) · 1.5 KB
/
pyproject.toml
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
[project]
name = "inverse-cai"
version = "0.1.0"
authors = [
{ name="rdnfn", email="[email protected]" },
{ name="timokau" },
]
description = "Inverse Constitutional AI"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"langchain",
"langchain-community",
"langchain-openai",
"langchain-anthropic",
"anthropic",
"alpaca-eval<=0.6.5",
"datasets", # To fetch huggingface datasets
"scikit-learn", # used for clustering
"pandas",
"python-dotenv",
"loguru",
"hydra-core",
"matplotlib",
"setuptools", # for alpaca-eval
]
[project.optional-dependencies]
dev = [
"pytest >=6.0",
"black ==24.10.0",
]
app = [
"gradio",
"plotly",
"nbconvert",
"jupyter",
"ipywidgets", # IProgress in jupyter notebooks
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel.force-include]
"src/inverse_cai/assets" = "inverse_cai/assets"
[project.scripts]
icai-exp = "inverse_cai.experiment.core:run"
icai-app = "inverse_cai.app.main:run"
icai-clean = "inverse_cai.tools.data_cleaner:run"
[tool.pytest.ini_options]
pythonpath = "."
testpaths = ["src"]
python_files = ["*_test.py"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"api: marks tests as API tests (deselect with '-m \"not api\"')",
]
[tool.black]
line-length = 88
target-version = ['py311']