[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"