实现第一版内存清洗核心

落实不可变数据契约、组件基类、原子修改执行器与顺序流水线。补充稳定性复查、审计记录、测试和当前机制文档。
This commit is contained in:
2026-08-22 01:03:03 +08:00
parent 8ac4f1dd12
commit 3edeeaf30e
15 changed files with 2023 additions and 145 deletions
+37
View File
@@ -0,0 +1,37 @@
[build-system]
requires = ["hatchling>=1.27,<2"]
build-backend = "hatchling.build"
[project]
name = "mdpolish"
version = "0.1.0"
description = "Deterministic in-memory core for composing Markdown cleaning components"
requires-python = ">=3.11"
dependencies = []
[project.optional-dependencies]
dev = [
"mypy>=1.15,<2",
"pytest>=8.3,<10",
"ruff>=0.11,<1",
]
[tool.hatch.build.targets.wheel]
packages = ["src/mdpolish"]
[tool.pytest.ini_options]
addopts = "-ra"
testpaths = ["tests"]
[tool.ruff]
target-version = "py311"
line-length = 120
extend-exclude = ["data", "reference"]
[tool.ruff.lint]
select = ["B", "E", "F", "I", "RUF", "UP"]
ignore = ["RUF001"]
[tool.mypy]
python_version = "3.11"
strict = true