-
Notifications
You must be signed in to change notification settings - Fork 53
/
pyproject.toml
94 lines (86 loc) · 3.13 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "hezar"
version = "0.42.0"
packages = [{ include = "hezar" }]
description = "Hezar: The all-in-one AI library for Persian, supporting a wide variety of tasks and modalities!"
license = "Apache-2.0"
authors = ["Aryan Shekarlaban <arxyzan@gmail.com>"]
maintainers = ["Aryan Shekarlaban <arxyzan@gmail.com>"]
repository = "https://github.com/hezarai/hezar"
homepage = "https://github.com/hezarai"
readme = ["README.md"]
keywords = ["packaging", "poetry"]
documentation = "https://hezarai.github.io/hezar/"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules"
]
exclude = [
"docs",
"examples",
"tests",
".gitignore",
".git"
]
[tool.poetry.dependencies]
python = ">=3.10.0"
torch = ">=1.10.0"
omegaconf = ">=2.3.0"
transformers = ">=4.28.0"
tokenizers = ">=0.13.0"
huggingface_hub = ">=0.12.0"
datasets = {version=">=2.9.0", optional=true}
pandas = {version="*", optional=true}
scikit-learn = {version=">=1.0.0", optional=true}
tensorboard = {version=">=2.10.0", optional=true}
torchvision = {version="*", optional=true}
opencv-python = { version = "*", optional = true}
accelerate = {version=">=0.27.0", optional=true}
numpy = {version="1.24.*", optional=true}
scipy = {version="1.11.4", optional=true}
gensim = {version="4.3.2", optional=true}
seqeval = {version=">=1.2.0", optional=true}
jiwer = {version=">=3.*", optional=true}
soundfile = {version=">=0.12.0", optional=true}
librosa = {version=">=0.10.0", optional=true}
pillow = {version=">=9.*,<=10.*", optional=true}
nltk = {version=">=3.8.0", optional=true}
rouge_score = {version="*", optional=true}
[tool.poetry.extras]
nlp = ["seqeval", "jiwer", "nltk", "rouge_score"]
audio = ["soundfile", "librosa", "jiwer"]
vision = ["pillow", "torchvision", "opencv-python"]
metrics = ["scikit-learn", "jiwer", "nltk", "rouge_score", "seqeval"]
trainer = ["accelerate", "pandas", "tensorboard"]
embeddings = ["gensim", "numpy", "scipy"]
dev = ["pytest", "ruff", "sphinx", "myst-parser", "furo", "sphinx-copybutton"]
all = [
"datasets", "accelerate", "pandas", "tensorboard", # Trainer
"numpy", "gensim", "scipy", # Embeddings
"scikit-learn", "jiwer", "nltk", "rouge_score", "seqeval", # Metrics
"soundfile", "librosa", # Speech
"torchvision", "pillow", "opencv-python", # Vision
"pytest", "ruff", "sphinx", "myst-parser", "furo", "sphinx-copybutton" # Dev, docs, tests
]
[tool.black]
line-length = 120
target-version = ['py310', 'py311', 'py312']
[tool.ruff]
lint.ignore = ["C901", "E501", "E741", "W605", "F403", "F405"]
lint.select = ["C", "E", "F", "I", "W"]
line-length = 120
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811", "I001"]
"*example*.py" = ["F401", "F841", "I001"]
"*test*.py" = ["F401", "F841"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["hezar"]
[tool.ruff.lint.pydocstyle]
convention = "google"