-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (89 loc) · 2.04 KB
/
Copy pathpyproject.toml
File metadata and controls
96 lines (89 loc) · 2.04 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "dvagen"
authors = [
{ name = "Wei Du", email = "[email protected]" },
{ name = "Nuowei Liu", email = "[email protected]" },
{ name = "Jie Wang", email = "[email protected]" },
{ name = "Jiahao Kuang", email = "[email protected]" },
]
license = "MIT"
dynamic = [
"version"
]
dependencies = [
"accelerate",
"click",
"tqdm",
"transformers == 4.51.3",
"numpy == 1.26.4",
"spacy",
"torch == 2.7.0",
"faiss == 1.9.0",
"peft == 0.14.0",
"datasets == 3.6.0",
"Django == 5.2.1",
"nltk",
"typing_extensions",
"pytest",
"langchain == 0.3.25",
"langchain_community == 0.3.25",
"langchain_core == 0.3.65",
"langchain_huggingface == 0.3.0",
"langchain-text-splitters == 0.3.8"
]
[project.scripts]
dvagen = "cli:main"
[tool.ruff]
target-version = "py311"
line-length = 119
indent-width = 4
[tool.ruff.lint]
ignore = [
"C408", # collection
"C901", # complex
"E501", # line too long
"E731", # lambda function
"E741", # ambiguous var name
"D100", # no doc public module
"D101", # no doc public class
"D102", # no doc public method
"D103", # no doc public function
"D104", # no doc public package
"D105", # no doc magic method
"D107", # no doc __init__
]
extend-select = [
"C", # complexity
"E", # error
"F", # pyflakes
"I", # isort
"W", # warning
"UP", # pyupgrade
"D", # pydocstyle
"PT009", # pytest assert
"RUF022", # sort __all__
]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["dvagen"]
known-third-party = [
"accelerate",
"datasets",
"gradio",
"numpy",
"peft",
"torch",
"transformers",
"trl",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
skip-magic-trailing-comma = false
line-ending = "auto"