hatch icon indicating copy to clipboard operation
hatch copied to clipboard

Hatch config set not working with pyproject.toml

Open kassett opened this issue 1 year ago • 3 comments

My pyproject.toml file is where all of my hatch configurations live.

My versioning is defined as follows [tool.hatch.version] path = 'src/saga3/init.py' validate-bump = false

I would like to dynamically set validate-bump to be false, but have it be true most of the time. However, when I run hatch config set tool.hatch.version.validate-bump false ; hatch config update, nothing happens. Am I doing something wrong?

kassett avatar Mar 24 '24 17:03 kassett

That command is for this https://hatch.pypa.io/latest/config/hatch/

ofek avatar Mar 24 '24 17:03 ofek

Would you be opposed to me opening a pull request to add a --validate-bump flag to the version command?

kassett avatar Mar 24 '24 18:03 kassett

Sure! Although, it would have to be the inverse because validation is the default.

ofek avatar Mar 24 '24 18:03 ofek