Files
mytoolkit/pyproject.toml
T
Zhengshou Lai 06704acf60 test: add pytest suite — CLI smoke + config/templates/md_to_pdf units
- tests/conftest.py redirects MYTOOLKIT_HOME to a temp dir before imports
  so the module-level Config singleton never touches the real ~/.mytoolkit
- CLI smoke: every registered command answers --help with exit code 0
- unit tests: Config get/set/migrate, templates_registry override/fallback,
  md_to_pdf pure helpers (pandoc-dependent cases skipif-guarded)
- pyproject: dev dependency group (pytest) + pytest config; Makefile: make test
2026-07-18 11:45:40 +08:00

31 lines
567 B
TOML

[project]
name = "mytoolkit"
version = "0.1.0"
description = "Personal CLI toolkit"
requires-python = ">=3.9"
dependencies = [
"click>=8.0",
"openai>=1.60",
"pillow>=11.3.0",
"pypdf>=6.10.1",
"python-docx>=1.1.0",
"websockets>=13.0",
]
[project.scripts]
mytoolkit = "mytoolkit.cli:main"
[dependency-groups]
dev = ["pytest>=8.0"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
[tool.hatch.build.targets.wheel]
packages = ["mytoolkit"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"