- Add pytest dependency and config to pyproject.toml - Test project_root: env var priority, fallback, directory creation - Test CLI: help, version, subcommands, default behavior, options
39 lines
716 B
TOML
39 lines
716 B
TOML
[project]
|
|
name = "myclaude"
|
|
version = "0.1.0"
|
|
description = "Myclaude CLI: package update and Claude Code launcher for this repo"
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"click>=8.3.2",
|
|
"rich>=13.0.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
myclaude = "myclaude.cli:cli"
|
|
|
|
[dependency-groups]
|
|
dev = ["pytest>=8.0"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py"]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["myclaude"]
|
|
|
|
[tool.black]
|
|
line-length = 80
|
|
target-version = ["py310"]
|
|
|
|
[tool.ruff]
|
|
line-length = 80
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B", "SIM", "W"]
|
|
ignore = ["E501"]
|