Aleksandr Gumroian (c4442449) at 08 Mar 10:32
It's easy to make a mistake here and it's very hard to debug it.
plugin_name_camel
should not contain any spacesplugin_url_prefix
should be a valid URLplugin_name_camel
should not contain any spacesA pre_gen_project
hook can validate template variables.
https://cookiecutter.readthedocs.io/en/stable/advanced/hooks.html#types-of-hooks
Closes: #2
Blocked by !33
Aleksandr Gumroian (f4049807) at 08 Mar 10:31
Merge branch 'validate-variables' into 'master'
... and 1 more commit
As I understand it's the default value, but you can change it during initiation. Maybe I'm wrong
Like personally I don't have problem with this.
But I'm not really sure that it is necessary, because it seems that you don't set plugin_name_camel
when you define plugin.
You should define name
and plugin_name_camel
should be derived from that.
see https://gitlab.nic.cz/turris/reforis/plugins-template/-/blob/master/cookiecutter.json#L3
Anyways It really doesn't hurt to have it there. So I'll leave it up to you.
plugin_name_camel
should not contain any spacesA pre_gen_project
hook can validate template variables.
https://cookiecutter.readthedocs.io/en/stable/advanced/hooks.html#types-of-hooks
Closes: #2
Blocked by !33
Aleksandr Gumroian (c4442449) at 05 Mar 11:23
Add template variables validation
... and 4 more commits
Aleksandr Gumroian (549ea78a) at 05 Mar 11:22
Aleksandr Gumroian (d942417a) at 05 Mar 11:22
Merge branch 'hatch-build' into 'master'
... and 6 more commits
I've tested it on a newly created GSM plugin for reForis.
Looks fine to me.
Just make sure that it actually works (create a sample plugin and perhaps test your dev setup). If so, you can safely merge it.
Aleksandr Gumroian (a203d3f5) at 04 Mar 15:09
Format Python files with Ruff
Aleksandr Gumroian (0d74ffda) at 04 Mar 15:02
Format Python files with Ruff
Aleksandr Gumroian (d1ca3961) at 04 Mar 15:00
Format Python files with Ruff