-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (121 loc) · 2.64 KB
/
pyproject.toml
File metadata and controls
132 lines (121 loc) · 2.64 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
[project]
name = "iff"
version = "0.1.0"
description = "instruction following for finance"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"absl-py>=1.0.0",
"nltk>=3.9.0",
"python-dotenv>=1.0.0",
"ty>=0.0.1a17",
"litellm>=1.75",
"openai>=1.0",
"together>=1.5",
"fastapi>=0.115",
"httpx[http2]>=0.24.0",
"tenacity>=8.2.0",
"tqdm>=4.65",
"jq>=1.10.0",
"pandas>=2.3.2",
"markdown>=3.8.2",
"bleach>=6.2.0",
"beautifulsoup4>=4.13.5",
"rich>=14.1.0",
]
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
py-modules = [
"instructions_registry",
"instructions_util",
"instructions_iff",
"instructions_iff",
"finance_instructions",
"evaluation_lib",
"evaluation_bin",
"build_input_jsonl",
"generate_responses",
"litellm_client",
"fastapi_client",
"provider_routing",
]
packages = []
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23.0",
"pytest-xdist>=3.0",
"pytest-cov>=6.0",
"pytest-mock>=3.10",
"ruff>=0.6",
"pre-commit>=3.5",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--strict-markers",
"--tb=short",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"unit: marks tests as unit tests",
"integration: marks tests as integration tests",
]
[tool.coverage.run]
source = ["."]
omit = [
"*/tests/*",
"*/test_*.py",
"*/__pycache__/*",
"*/venv/*",
"*/env/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"raise AssertionError",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]
[tool.ty.environment]
python-version = "3.12"
[tool.ty.rules]
# Enable strict type checking rules
# ty uses different rule names than mypy
# The available rules can be found in ty documentation
[dependency-groups]
dev = [
"ruff>=0.12.8",
]
[tool.ruff]
line-length = 100
target-version = "py312"
exclude = [
".venv",
"__pycache__",
"*.egg-info",
".git",
"out*",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"E701", # multiple statements on one line
"N801", # class name should use CapWords convention (finance classes use underscores)
"N812", # lowercase imported as non-lowercase (evaluation_lib as EL)
]