tritesh commited on
Commit
2999a3a
Β·
verified Β·
1 Parent(s): 1e567d1

Upload pyproject.toml

Browse files
Files changed (1) hide show
  1. pyproject.toml +41 -0
pyproject.toml CHANGED
@@ -77,3 +77,44 @@ target-version = ['py311']
77
  line-length = 100
78
  select = ["E", "F", "W", "I"]
79
  ignore = ["E501"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  line-length = 100
78
  select = ["E", "F", "W", "I"]
79
  ignore = ["E501"]
80
+
81
+ # ──────────────────────────────────────────────────────────────────────────────
82
+ # UV (Ultra-fast Python package manager) configuration
83
+ # ──────────────────────────────────────────────────────────────────────────────
84
+
85
+ [tool.uv]
86
+ # Use the project Python version
87
+ python-preference = "only-managed"
88
+
89
+ # Default environment
90
+ default-groups = ["dev"]
91
+
92
+ # Allow pre-releases for MLX (which often has beta releases)
93
+ prerelease = "allow"
94
+
95
+ # Resolution strategy
96
+ resolution = "highest"
97
+
98
+ # Cache directory (default is fine, but can be overridden)
99
+ # cache-dir = "~/.cache/uv"
100
+
101
+ [tool.uv.pip]
102
+ # Use PEP 517 builds for packages that need compilation
103
+ no-build-isolation = false
104
+
105
+ [tool.uv.sources]
106
+ # Pin mlx-lm to a known-good version range if needed
107
+ # mlx-lm = { url = "https://files.pythonhosted.org/packages/..." }
108
+
109
+ [dependency-groups]
110
+ dev = [
111
+ "pytest>=7.0.0",
112
+ "pytest-cov>=4.0.0",
113
+ "black>=23.0.0",
114
+ "ruff>=0.1.0",
115
+ "mypy>=1.5.0",
116
+ ]
117
+ server = [
118
+ "fastapi>=0.100.0",
119
+ "uvicorn>=0.23.0",
120
+ ]