forked from Tiny-Walnut-Games/the-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (130 loc) · 3.07 KB
/
pyproject.toml
File metadata and controls
142 lines (130 loc) · 3.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
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
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "the-seed"
version = "0.1.0"
description = "The Seed - A fractal, multidimensional addressing and retrieval system for infinitely extensible data and narrative storage"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "MIT"}
authors = [
{name = "Your Name", email = "your.email@example.com"}
]
dependencies = [
"pydantic>=2.0",
"numpy>=1.20",
"pytest>=7.0",
"pytest-cov>=4.0",
"pyyaml>=6.0",
# GPU Acceleration and ML
"torch>=2.0.0",
"torchvision>=0.15.0",
"transformers>=4.30.0",
"sentence-transformers>=2.2.0",
"faiss-cpu>=1.7.0",
"faiss-gpu>=1.7.0; platform_system == 'Linux' or platform_system == 'Windows'",
# Data Processing
"datasets>=2.12.0",
"psutil>=5.9.0",
"requests>=2.28.0",
"aiohttp>=3.8.0",
# Web and API
"fastapi>=0.100.0",
"uvicorn>=0.22.0",
"websockets>=11.0",
# Utilities
"click>=8.1.0",
"tqdm>=4.64.0",
"python-multipart>=0.0.6",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"pytest-xdist>=3.0",
"black>=22.0",
"flake8>=4.0",
"mypy>=0.950",
"ipython>=8.0",
]
test = [
"pytest>=7.0",
"pytest-cov>=4.0",
"pytest-xdist>=3.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
# Test discovery
addopts = [
"-v",
"--tb=short",
"--strict-markers",
"--disable-warnings",
"--co", # Collect only on verbose runs
]
# Markers for organizing tests
markers = [
"exp01: EXP-01 Address Uniqueness Tests",
"exp02: EXP-02 Retrieval Efficiency Tests",
"exp03: EXP-03 Dimension Necessity Tests",
"exp04: EXP-04 Fractal Scaling Tests",
"exp05: EXP-05 Compression/Expansion Tests",
"exp06: EXP-06 Entanglement Detection Tests",
"exp07: EXP-07 LUCA Bootstrap Tests",
"exp08: EXP-08 Warbler Integration Tests",
"exp09: EXP-09 Concurrency Tests",
"exp10: EXP-10 Narrative Preservation Tests",
"math: Mathematical validation tests",
"robustness: Robustness and stress tests",
"integration: Integration tests",
"slow: Slow running tests",
]
[tool.coverage.run]
source = ["seed", "scripts"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/site-packages/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*Protocol.*:",
"@(abc\\.)?abstractmethod",
]
[tool.black]
line-length = 100
target-version = ["py39"]
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "seed.engine.*"
ignore_errors = true