Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement custom template additions #31

Merged
merged 33 commits into from
Aug 10, 2023
Merged

Implement custom template additions #31

merged 33 commits into from
Aug 10, 2023

Conversation

seapagan
Copy link
Owner

@seapagan seapagan commented Jul 31, 2023

Allow the users to add their own standard files or folders that will be added to each newly generated layout.

These files should be stored in the ~/.pymaker/template folder and can be copied as-is or processed as a Jinja template.

Additionally, the user can dump the default template into this folder to allow full customization so that, if required, files can actually be removed from the template.

Users can also set the folder of their choice to be used as the template. There is a config setting to instruct to ignore the internal template in these cases.

@seapagan seapagan self-assigned this Jul 31, 2023
this is the only exception in the Prompt class, we should provide it
from our subclass

Signed-off-by: Grant Ramsay <[email protected]>
for pydantic and pytest, lower false-positives

Signed-off-by: Grant Ramsay <[email protected]>
Signed-off-by: Grant Ramsay <[email protected]>
We state >=3.9 in the deps

Signed-off-by: Grant Ramsay <[email protected]>
Signed-off-by: Grant Ramsay <[email protected]>
Signed-off-by: Grant Ramsay <[email protected]>
Signed-off-by: Grant Ramsay <[email protected]>
Signed-off-by: Grant Ramsay <[email protected]>
Signed-off-by: Grant Ramsay <[email protected]>
Signed-off-by: Grant Ramsay <[email protected]>
adding a method to fully expand the path with user and env vars

Signed-off-by: Grant Ramsay <[email protected]>
Signed-off-by: Grant Ramsay <[email protected]>
Signed-off-by: Grant Ramsay <[email protected]>
@seapagan seapagan added enhancement New feature or request refactor Internal refactoring of code or linting etc labels Aug 9, 2023
defaults to '~/.pymaker/template'

Signed-off-by: Grant Ramsay <[email protected]>
empty license was bypassing choices and causing Exception

Signed-off-by: Grant Ramsay <[email protected]>
CLI template 'set' was shadowing the python 'set' cmd

Signed-off-by: Grant Ramsay <[email protected]>
Signed-off-by: Grant Ramsay <[email protected]>
@seapagan seapagan marked this pull request as ready for review August 10, 2023 13:33
Copy link

@code-review-doctor code-review-doctor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some food for thought. View full project report here.

py_maker/commands/template.py Outdated Show resolved Hide resolved
py_maker/commands/template.py Outdated Show resolved Hide resolved
py_maker/commands/template.py Outdated Show resolved Hide resolved
py_maker/commands/template.py Outdated Show resolved Hide resolved
py_maker/commands/template.py Outdated Show resolved Hide resolved
@seapagan seapagan merged commit 099cf1d into main Aug 10, 2023
3 checks passed
@seapagan seapagan deleted the custom-files branch August 10, 2023 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor Internal refactoring of code or linting etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant