-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
66 lines (53 loc) · 1.59 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
[project]
name = "mlxformers"
dynamic = ["version"]
description = "This is a MLX implementation of the transformers library from Hugging Face. This should contain all or a subset of the models from the transformers libraary until it gets added to the original library."
authors = [
{name = "Eduardo Pacheco", email = "[email protected]"},
]
dependencies = [
"mlx>=0.14.1",
"huggingface-hub>=0.24.5",
"transformers>=4.44.0",
"pillow>=10.4.0",
]
requires-python = ">=3.8"
readme = "README.md"
license = {text = "Apache-2.0"}
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.version]
source = "file"
path = "src/mlxformers/__init__.py"
[tool.pdm.dev-dependencies]
dev = [
"ruff>=0.5.7",
"pre-commit>=3.5.0",
"pillow>=10.4.0",
"torch>=2.4.0",
"pytest>=8.3.2",
]
# COPYING FROM transformers to keep the same style
[tool.ruff]
line-length = 119
[tool.ruff.lint]
# Never enforce `E501` (line length violations).
ignore = ["C901", "E501", "E741", "F402", "F823" ]
select = ["C", "E", "F", "I", "W"]
# Ignore import violations in all `__init__.py` files.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811"]
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"