-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (75 loc) · 1.84 KB
/
Copy pathpyproject.toml
File metadata and controls
84 lines (75 loc) · 1.84 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "interscript-ml-tools"
version = "0.1.0"
description = "Unified training framework for Interscript ML models (rababa + secryst)"
readme = "README.md"
license = { text = "BSD-3-Clause" }
requires-python = ">=3.10"
authors = [{ name = "Interscript Project" }]
keywords = ["nlp", "transliteration", "diacritization", "onnx", "distillation"]
dependencies = [
"numpy>=1.26",
"pyyaml>=6.0",
"tqdm>=4.66",
"pydantic>=2.5",
]
[project.optional-dependencies]
train = [
"torch>=2.2",
"transformers>=4.42",
"datasets>=2.18",
"accelerate>=0.27",
"peft>=0.10",
"sentencepiece>=0.2",
]
export = [
"onnx>=1.16",
"onnxruntime>=1.17",
]
publish = [
"huggingface_hub>=0.23",
"omegaconf>=2.3",
"pyarrow>=15.0",
]
sadeed = [
"pyarabic>=0.6",
"prettytable>=3.9",
"pandas>=2.0",
"pyarrow>=14.0",
"huggingface_hub>=0.23",
]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.4",
"mypy>=1.10",
]
[project.scripts]
interscript-ml = "imf.cli:main"
interscript-sadeed-eval = "sadeedbench.cli:main"
[tool.setuptools.packages.find]
where = ["src"]
include = ["framework*", "tasks*", "imf*", "sadeedbench*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src", "."]
addopts = "-ra -q --strict-markers"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"gpu: marks tests requiring a GPU",
]
[tool.ruff]
line-length = 100
target-version = "py310"
# ADR-0001: the vendored Misraj evaluator is a provenance artifact —
# excluded, never rewritten or reformatted (same policy as rababa's copy)
extend-exclude = ["src/sadeedbench/vendored_sadeed_evaluator.py"]
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "SIM", "C4"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_unused_configs = true