-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (90 loc) · 2.13 KB
/
pyproject.toml
File metadata and controls
102 lines (90 loc) · 2.13 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "tw-code-qa"
version = "0.1.0"
description = "Traditional Chinese Code-QA Dataset Conversion System using Multi-Agent Architecture"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
# Data Processing
"datasets>=4.0.0",
"pandas>=2.3.1",
"numpy>=2.2.6",
"pyarrow>=10.0.0",
# AI & LLM Framework
"langchain>=0.3.27",
"langgraph>=0.6.3",
"langchain[openai]",
"langchain[anthropic]",
"langchain[google-genai]",
"langchain-community>=0.3.0",
# Utilities
"tqdm>=4.67.1",
"python-dotenv>=1.0.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
# Optional UI dependencies
"streamlit>=1.0.0",
"gradio>=4.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.0.0",
"black>=24.0.0",
"isort>=5.13.0",
"mypy>=1.8.0",
"pre-commit>=3.6.0",
]
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.black]
line-length = 88
target-version = ['py310']
[tool.isort]
profile = "black"
line_length = 88
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_any_unimported = true
disallow_any_expr = true
disallow_any_decorated = true
disallow_any_explicit = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
strict_concatenate = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
[[tool.mypy.overrides]]
module = [
"datasets.*",
"transformers.*",
"torch.*",
"openai.*",
"anthropic.*",
"langchain.*",
"langgraph.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["src"]
python_files = ["test_*.py", "*_test.py"]
python_functions = ["test_*"]