-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (139 loc) · 4.71 KB
/
Copy pathpyproject.toml
File metadata and controls
151 lines (139 loc) · 4.71 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[build-system]
requires = ["setuptools>=65", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "oscillink"
version = "0.1.13"
description = "Oscillink Lattice — Short-Term Coherence SDK (physics-inspired memory for generative models)"
authors = [{name="Oscillink", email="contact@oscillink.com"}]
maintainers = [{name = "Travis Johnson", email = "travisjohnson@oscillink.com"}]
readme = "README.md"
requires-python = ">=3.10"
license = {file = "LICENSE"}
dependencies = [
"numpy>=1.22,<3.0",
"typing_extensions>=4.7"
]
keywords = ["graph", "lattice", "memory", "retrieval", "ai", "ml", "coherence", "physics-inspired"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: OS Independent",
"Typing :: Typed"
]
[project.urls]
Homepage = "https://github.com/Maverick0351a/Oscillink"
Documentation = "https://github.com/Maverick0351a/Oscillink#quickstart"
Source = "https://github.com/Maverick0351a/Oscillink"
Issues = "https://github.com/Maverick0351a/Oscillink/issues"
Changelog = "https://github.com/Maverick0351a/Oscillink/blob/main/CHANGELOG.md"
Security = "https://github.com/Maverick0351a/Oscillink/blob/main/SECURITY.md"
Support = "https://github.com/Maverick0351a/Oscillink/blob/main/SUPPORT.md"
Funding = "https://buy.stripe.com/7sY9AUbcK1if2y6d2g2VG08"
Terms = "https://github.com/Maverick0351a/Oscillink/blob/main/docs/product/TERMS.md"
Privacy = "https://github.com/Maverick0351a/Oscillink/blob/main/docs/product/PRIVACY.md"
DPA = "https://github.com/Maverick0351a/Oscillink/blob/main/docs/billing/DPA.md"
[project.scripts]
oscillink = "oscillink.cli:main"
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.1",
"ruff>=0.5.0",
"mypy>=1.5",
"pre-commit>=3.7",
"fastapi>=0.111",
"httpx>=0.27",
"orjson>=3.9",
"python-multipart>=0.0.6",
"prometheus-client>=0.20",
"matplotlib>=3.7"
]
bench = [
"sentence-transformers>=2.2.2",
"ir_datasets>=0.5.5",
"ranx>=0.3.20",
"tqdm>=4.66"
]
cloud = [
"fastapi>=0.111",
"uvicorn[standard]>=0.30",
"gunicorn>=21.0",
"redis>=5.0",
"pydantic>=2.5",
"orjson>=3.9",
"python-multipart>=0.0.6",
"prometheus-client>=0.20"
]
billing = [
"stripe>=10.0",
"google-cloud-firestore>=2.16"
]
cloud-all = [
# Unified set of dependencies from 'cloud' and 'billing' (avoid recursive self reference)
"fastapi>=0.111",
"uvicorn[standard]>=0.30",
"gunicorn>=21.0",
"redis>=5.0",
"pydantic>=2.5",
"orjson>=3.9",
"python-multipart>=0.0.6",
"prometheus-client>=0.20",
"stripe>=10.0",
"google-cloud-firestore>=2.16"
]
[tool.setuptools]
# Explicitly list packages to avoid discovery error with multiple top-level dirs (oscillink, cloud)
packages = ["oscillink", "cloud"]
[tool.setuptools.package-data]
oscillink = [
"py.typed",
]
[tool.ruff]
line-length = 100
target-version = "py310"
exclude = [
"**/*.ipynb", # exclude Jupyter notebooks from linting
]
[tool.ruff.lint]
select = ["E","F","I","UP","B","N","SIM","C90"]
# Ignore selected modernizations we defer (keep some explicit typing imports, etc.)
ignore = [
"N802","N803","N806", # naming
"N815", # allow lamG/lamC/lamQ/lamP parameter style (domain-specific symbols)
"UP035","UP006","UP037","UP045","UP038", # selectively keep some typing modernizations disabled
"B905", # don't require zip(strict=) yet in all examples/scripts
"B008", # FastAPI Depends pattern acceptable for this project
"SIM105","SIM910", # optional stylistic simplifications
"E501" # allow longer lines (benchmark/log payload clarity & doc tables); revisit later
]
[tool.ruff.lint.per-file-ignores]
"notebooks/*.ipynb" = ["E402","E741","F401","F821","F811"]
"scripts/benchmark.py" = ["C901"]
"scripts/proof_hallucination.py" = ["C901"]
[tool.mypy]
python_version = "3.10"
warn_unused_ignores = true
pretty = true
[tool.pytest.ini_options]
filterwarnings = [
"ignore:Please use `import python_multipart` instead\\.:PendingDeprecationWarning:starlette.formparsers",
]
[[tool.mypy.overrides]]
# sentence-transformers is an optional runtime dependency for embeddings; we fall back when absent.
# In CI we don't install it, so silence missing type stub/library errors for this module only.
module = [
"sentence_transformers",
"sentence_transformers.*",
]
ignore_missing_imports = true