Open lieutdan13 opened 1 month ago
Hey @lieutdan13,
thanks for reporting this. Indeed, I intended for pre-commit to be a prerequisite of the python-project-template
. Although, I don't see a reason why we shouldn't make it easier for users to get started. I'm alright with both approaches you outlined. If pre-commit as a dev-dependency solves the issue, go for it :-)
Problem
After the new project has been initialized, I receive a warning that
pre-commit
is not installed. I see thatpre-commit
is in thedev
dependencies.Solutions
1) move
pre-commit
todependencies
inpyproject.toml
2) add documentation that one must installpre-commit
or install thedev
dependencies before enablingprecommit
during runtime 3) others?Suggestion
Since the
precommit
option defaults totrue
, my suggestion would be to movepre-commit
package into thepython-project-template
dependencies.@jannismain I'd be interested in your thoughts. I'd be willing to implement either of the proposed changes or explore other options