forked from hezarai/hezar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
79 lines (70 loc) · 2.22 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "hezar"
version = "0.29.3"
packages = [{ include = "hezar" }]
description = "Hezar: The all-in-one AI library for Persian, supporting a wide variety of tasks and modalities!"
license = "MIT"
authors = ["Aryan Shekarlaban <[email protected]>"]
maintainers = ["Aryan Shekarlaban <[email protected]>"]
repository = "https://github.com/hezarai/hezar"
homepage = "https://github.com/hezarai"
readme = ["README.md", "LICENSE"]
keywords = ["packaging", "poetry"]
documentation = "https://hezarai.github.io/hezar/"
classifiers = [
"Development Status :: 4 - Beta",
"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.8"
torch = ">=1.10.*,<2.1"
omegaconf = ">=2.3.0"
transformers = ">=4.28.0"
tokenizers = ">=0.13.0"
datasets = ">=2.9.0"
huggingface_hub = ">=0.12.0"
tensorboard = ">=2.10.0"
scikit-learn = ">=1.0.0"
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}
[tool.poetry.extras]
nlp = ["seqeval", "jiwer", "nltk"]
audio = ["soundfile", "librosa", "jiwer"]
vision = ["pillow"]
embeddings = ["gensim"]
docs = ["sphinx", "myst-parser", "furo", "sphinx-copybutton"]
linting = ["ruff", "black"]
all = ["gensim", "seqeval", "jiwer", "soundfile", "librosa", "pillow", "nltk"]
[tool.black]
line-length = 120
target-version = ['py38', 'py39', 'py310']
[tool.ruff]
ignore = ["C901", "E501", "E741", "W605", "F403", "F405"]
select = ["C", "E", "F", "I", "W"]
line-length = 120
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811", "I001"]
"*example*.py" = ["F401", "F841", "I001"]
"*test*.py" = ["F401", "F841"]
[tool.ruff.isort]
lines-after-imports = 2
known-first-party = ["hezar"]
[tool.ruff.pydocstyle]
convention = "google"