pyproject.toml — hatch environments
[tool.hatch.envs.build]
dependencies = [
"hatchling",
"pip-audit",
"twine",
]
[tool.hatch.envs.build.scripts]
check = [
"pip check",
"hatchling build {args:--clean}",
"twine check dist/*",
]
Custom environments let you run tasks like building, linting, or publishing.