[project] name = "htr" version = "0.1.0" description = "WP-AI-0002 - Human Text Reconstruction Transformer: learning the inverse of LLM-induced transformations in scientific writing" requires-python = ">=3.12" license = {text = "Apache-2.0"} dependencies = [ "numpy>=2.0", "torch>=2.4", "pydantic>=2.6", "lxml>=5.0", "pyarrow>=16", "langdetect>=1.0.9", "xxhash>=3.4", "datasketch>=1.6", "rapidfuzz>=3.0", "sacrebleu>=2.4", "rouge-score>=0.1.2", "sentencepiece>=0.2", "tokenizers>=0.20", "safetensors>=0.4", "matplotlib>=3.9", "scipy>=1.13", ] [project.optional-dependencies] api = ["anthropic>=0.60"] hf = ["transformers>=4.45", "huggingface_hub>=0.25", "sentence-transformers>=3.0", "datasets>=3.0"] dev = ["pytest>=8", "ruff>=0.6"] [project.scripts] htr = "htr.cli:main" [build-system] requires = ["setuptools>=68"] build-backend = "setuptools.build_meta" [tool.setuptools.packages.find] where = ["src"] [tool.pytest.ini_options] testpaths = ["tests"] pythonpath = ["src"] addopts = "-q" markers = ["network: tests that touch the network (deselect with -m 'not network')", "slow: slow tests"] [tool.ruff] line-length = 110 target-version = "py312"