File size: 1,096 Bytes
f9306c2
 
 
 
 
 
 
 
 
 
 
 
 
5f7d974
f9306c2
 
3e67073
f9306c2
 
 
3e67073
f9306c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[project]
name = "mathvision-explorer"
version = "0.1.0"
description = "Typed tools for exploring MathVision-style visual math datasets with JEPA-ready embeddings."
readme = "README.md"
requires-python = ">=3.11"
authors = [{ name = "MathVision Explorer" }]
dependencies = [
    "pillow>=10.0",
]

[project.optional-dependencies]
app = [
    "datasets>=3.0",
    "streamlit>=1.35",
]
ijepa = [
    "numpy>=1.26",
    "torch>=2.4",
    "torchvision>=0.19",
    "transformers==5.5.4",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[dependency-groups]
dev = [
    "mypy>=1.10",
    "pytest>=8.0",
    "ruff>=0.5",
]

[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["tests"]

[tool.uv.sources]
torch = { index = "pytorch-cpu" }
torchvision = { index = "pytorch-cpu" }

[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true

[tool.ruff]
line-length = 100
target-version = "py311"

[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]

[tool.mypy]
python_version = "3.11"
strict = true
files = ["src", "tests"]