-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (105 loc) · 3.33 KB
/
pyproject.toml
File metadata and controls
118 lines (105 loc) · 3.33 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[project]
name = "mlx-stack"
dynamic = ["version"]
description = "CLI control plane for local LLM infrastructure on Apple Silicon"
readme = "README.md"
license = "MIT"
requires-python = ">=3.13"
authors = [
{ name = "mlx-stack contributors" },
]
keywords = ["mlx", "llm", "apple-silicon", "cli", "vllm"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"click>=8.1",
"rich>=13.0",
"httpx>=0.27",
"psutil>=5.9",
"pyyaml>=6.0",
"huggingface-hub>=1.8.0",
]
[project.urls]
Homepage = "https://github.com/weklund/mlx-stack"
Repository = "https://github.com/weklund/mlx-stack"
Issues = "https://github.com/weklund/mlx-stack/issues"
Documentation = "https://github.com/weklund/mlx-stack#readme"
[project.scripts]
mlx-stack = "mlx_stack.cli:cli"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/mlx_stack/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/mlx_stack"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = "-x -q --tb=short -m 'not integration and not smoke and not catalog_validation and not harness'"
markers = [
"integration: real system integration tests (launchctl, etc.)",
"smoke: per-model smoke tests requiring model download and inference",
"catalog_validation: catalog data integrity checks (requires network, no models)",
"harness: external tool compatibility tests (OpenAI client, streaming)",
]
[tool.ruff]
target-version = "py313"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = [
# Tier 1 — high value, very safe
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"W", # pycodestyle warnings
"UP", # pyupgrade — modern Python syntax
"B", # bugbear — common bug patterns
"SIM", # simplify — reduce complexity
"C4", # flake8-comprehensions
"RUF", # Ruff-specific rules
# Tier 2 — strong value, minor tuning
"PIE", # misc cleanup
"RET", # return simplification
"PERF", # performance anti-patterns
"PT", # pytest style
# "C90", # mccabe complexity — enable after refactoring complex functions
"FURB", # modernization
"FLY", # f-string conversion
]
ignore = [
"E501", # line length (formatter handles this)
"SIM108", # ternary operator (opinionated)
"SIM117", # nested with statements (clearer in test mocking patterns)
"PT018", # composite assertions (splitting weakens error messages)
"PT019", # fixture without value (usefixtures less readable)
"PT017", # assert in except (valid test pattern)
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"src/mlx_stack/_version.py" = ["RUF022"] # auto-generated by hatch-vcs
[tool.pyright]
pythonVersion = "3.13"
pythonPlatform = "Darwin"
venvPath = "."
venv = ".venv"
typeCheckingMode = "basic"
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"pyright>=1.1",
"ruff>=0.8",
]