-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (72 loc) · 2.07 KB
/
pyproject.toml
File metadata and controls
83 lines (72 loc) · 2.07 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "fmtools"
version = "0.0.218"
description = "Async-native Python framework built on Apple’s Foundation Models Python SDK for schema-validated extraction, streaming pipelines, local chat, and crash debugging on Apple Silicon."
readme = "README.md"
requires-python = ">=3.13"
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"polars>=0.20.0",
"dspy>=2.5.0",
"pydantic>=2.0.0",
"click>=8.0.0",
]
[project.scripts]
fmtools = "fmtools.cli:cli_entry"
[project.optional-dependencies]
api = ["fastapi>=0.100.0", "uvicorn>=0.30.0"]
adapters = ["trio>=0.25.0"]
arrow = ["pyarrow>=15.0.0"]
[dependency-groups]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"ruff>=0.14.0",
"ty>=0.0.1",
]
apple = [
"apple-fm-sdk",
]
[tool.uv.sources]
apple-fm-sdk = { git = "https://github.com/apple/python-apple-fm-sdk" }
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.ruff]
line-length = 100
target-version = "py313"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line length (handled by formatter)
"UP007", # X | Y union syntax (we support 3.13+)
"UP036", # keep explicit runtime-version guards where readability matters
"UP043", # avoid broad churn from default generic argument elision
"UP047", # postpone PEP 695 type-parameter migration
]
[tool.ruff.lint.isort]
known-first-party = ["fmtools"]
[tool.ty.environment]
python-version = "3.13"
[tool.hatch.build.targets.wheel]
packages = ["fmtools"]