You can control how new projects are created by the new command using Hatch's config file.
[template] name = "..." email = "..."
[template.licenses] headers = true default = [ "MIT", ]
The list of licenses should be composed of SPDX identifiers. If multiple licenses are specified, then they will be placed in a LICENSES directory.
This adds a
tests directory with environments for testing and linting.
[template.plugins.default] tests = true
This adds a GitHub Actions workflow that runs tests on all platforms using modern versions of Python.
[template.plugins.default] ci = false
See this blog post.
[template.plugins.default] src-layout = true
Command line interface¶
--cli flag adds a CLI backed by Click that can also be invoked with
python -m <PKG_NAME>.