pyproject.toml
has certain fields that are required:
pyproject.toml
[project]
name = "arrow-to-knee" # required!
version = "1.0.0" # required!
Hatch provides a nice CLI to get the version:
$ hatch version
1.0.0
You can also use this subcommand to set the version:
$ hatch version 2.0.0
Old: 1.0.0
New: 2.0.0