File size: 1,320 Bytes
659433c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[build-system]
requires = ["setuptools>=77.0.3", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "tiny-codemode"
version = "0.1.0"
description = "Bounded research semantic parser and deterministic JavaScript compiler"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
dependencies = ["numpy>=1.24"]

[project.optional-dependencies]
training = ["torch>=2.0"]

[dependency-groups]
dev = ["ruff==0.16.10", "ty==0.0.10", "build>=1.2"]

[tool.uv]
required-version = ">=0.9.0"

[tool.uv.sources]
torch = [{ index = "pytorch-cpu", marker = "sys_platform == 'linux' or sys_platform == 'win32'" }]

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

[project.scripts]
tiny-codemode = "infer:main"

[tool.setuptools]
py-modules = ["core", "model", "infer"]
packages = ["tiny_codemode_weights"]

[tool.setuptools.package-data]
tiny_codemode_weights = ["model.npz"]

[tool.ruff]
target-version = "py310"
extend-exclude = ["archive", "artifacts", "history", "build", "dist"]
force-exclude = true

[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "UP", "B"]

[tool.ty.src]
include = ["*.py", "tests", "tools", "tiny_codemode_weights"]
exclude = ["archive", "artifacts", "history", "build", "dist"]

[tool.ty.environment]
python-version = "3.10"