-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
108 lines (94 loc) · 2.71 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "cleanlab-codex"
dynamic = ["version"]
description = 'Python client library for developers to integrate Cleanlab Codex into RAG systems'
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [
{ name = "Cleanlab Inc", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"codex-sdk==0.1.0a9",
"pydantic>=2.0.0, <3",
]
[project.urls]
Documentation = "https://github.com/cleanlab/cleanlab-codex#readme"
Issues = "https://github.com/cleanlab/cleanlab-codex/issues"
Source = "https://github.com/cleanlab/cleanlab-codex"
[tool.hatch.version]
path = "src/cleanlab_codex/__about__.py"
[tool.hatch.envs.types]
extra-dependencies = [
"mypy>=1.0.0",
"pytest",
"llama-index-core",
"smolagents",
"cleanlab-tlm",
"thefuzz",
"langchain-core",
]
[tool.hatch.envs.types.scripts]
check = "mypy --strict --install-types --non-interactive {args:src/cleanlab_codex tests}"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.envs.hatch-test]
extra-dependencies = [
"llama-index-core",
"smolagents; python_version >= '3.10'",
"cleanlab-tlm",
"thefuzz",
"langchain-core",
]
[tool.hatch.envs.hatch-test.env-vars]
COVERAGE_FAIL_UNDER = ""
[tool.hatch.envs.hatch-test.overrides]
matrix.python.env-vars = [ { key = "COVERAGE_FAIL_UNDER", value = "--fail-under=90", if = [ "3.13" ] } ]
[tool.hatch.envs.hatch-test.scripts]
run = "pytest{env:HATCH_TEST_ARGS:} {args}"
run-cov = "coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}"
cov-combine = "coverage combine"
cov-report = "coverage report {env:COVERAGE_FAIL_UNDER}"
[tool.coverage.run]
source_pkgs = ["cleanlab_codex", "tests"]
branch = true
parallel = true
omit = [
"src/cleanlab_codex/__about__.py",
"*/tests/*",
]
[tool.coverage.paths]
cleanlab_codex = ["src/cleanlab_codex", "*/cleanlab-codex/src/cleanlab_codex"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if _TYPE_CHECKING:",
]
[tool.hatch.envs.coverage]
detached = true
dependencies = [
"coverage",
]
[tool.hatch.envs.coverage.scripts]
report = "coverage report --fail-under=90"
html = "coverage html"
xml = "coverage xml"
[tool.ruff.lint]
ignore = ["FA100", "UP007", "UP006", "EM101"]