-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (76 loc) · 2.27 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (76 loc) · 2.27 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mlxcel"
version = "0.1.0"
description = "Python client for the mlxcel OpenAI-compatible inference server"
readme = "README.md"
requires-python = ">=3.9"
license = "Apache-2.0"
authors = [
{ name = "Lablup Inc." },
{ name = "Jeongkyu Shin" },
]
keywords = ["mlx", "llm", "inference", "openai", "apple-silicon"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
]
dependencies = [
"openai>=1.40",
"httpx>=0.27",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"ruff>=0.6",
"mypy>=1.11",
]
[project.urls]
Homepage = "https://github.com/lablup/mlxcel"
Repository = "https://github.com/lablup/mlxcel"
Issues = "https://github.com/lablup/mlxcel/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/mlxcel"]
[tool.pytest.ini_options]
markers = [
"e2e: end-to-end tests requiring a real mlxcel binary (set MLXCEL_BIN); skipped by default",
]
testpaths = ["tests"]
[tool.ruff]
line-length = 100
target-version = "py39"
src = ["src", "tests", "examples"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "W"]
ignore = [
"UP006", # keep typing.List etc. usable on 3.9 where needed
"UP007", # keep Optional[...] / Union[...] for 3.9 runtime compatibility
"UP035", # allow typing imports under requires-python 3.9
"UP037", # keep quoted self-referential annotations
"UP045", # keep Optional[...] over X | None for 3.9 clarity
]
[tool.ruff.lint.per-file-ignores]
"tests/fake_server.py" = ["B008"]
[tool.mypy]
python_version = "3.9"
strict = true
warn_unused_configs = true
disallow_untyped_defs = true
namespace_packages = true
explicit_package_bases = true
mypy_path = "src"
[[tool.mypy.overrides]]
module = ["tests.*", "examples.*"]
disallow_untyped_defs = false
ignore_missing_imports = true