Replies: 4 comments 3 replies
-
I like this idea and wondered the same. I think it's worth opening a feature suggestion issue. |
Beta Was this translation helpful? Give feedback.
-
This is now the default #571 |
Beta Was this translation helpful? Give feedback.
-
Hey @ofek although src layout is a default now, what are your thought about introducing the cli and/or env variable nevertheless? I completely agree with @ubaldot that it's cumbersome to make a config file for something that is essentially a switch. |
Beta Was this translation helpful? Give feedback.
-
heya @ofek i'm curious is there a setting to create a src/ dir as i just used
many thanks! |
Beta Was this translation helpful? Give feedback.
-
Given that this appear to be fairly common, why not add the possibility of adding a flag to create a folder structure with the
src
structure?I know that one could write a hatch
config
file prior to run hatch new, but it may be tedious.To me the best would be just to run
hatch new --src-layout "Hatch Demo"
and then to edit stuff directly in the generated
pyproject.toml
file.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions