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

Commits on Jul 31, 2023

  1. refactor a couple of methods into helper functions

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    376ab46 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. tweak prompt to provide InvalidResponse exception

    this is the only exception in the Prompt class, we should provide it
    from our subclass
    
    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    7a9a31a View commit details
    Browse the repository at this point in the history
  2. add pylint plugins

    for pydantic and pytest, lower false-positives
    
    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    b11f914 View commit details
    Browse the repository at this point in the history
  3. refactor exit value class as IntEnum

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    c7ca175 View commit details
    Browse the repository at this point in the history
  4. copy files from user template if they exist

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    33222ce View commit details
    Browse the repository at this point in the history
  5. add a few more unit tests

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    d529227 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. remove Python 3.8 from the PyPI classifiers

    We state >=3.9 in the deps
    
    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    d1997a7 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. update TODO

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    66f47e7 View commit details
    Browse the repository at this point in the history
  2. update pre-config settings

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    9232dc3 View commit details
    Browse the repository at this point in the history
  3. move get_file_list() from PyMaker to helper file

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    960c0a6 View commit details
    Browse the repository at this point in the history
  4. implement dumping the template

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    7f39bdc View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2023

  1. docs: start updating docs

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    13b855b View commit details
    Browse the repository at this point in the history
  2. convert settings into a module

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    4382fb1 View commit details
    Browse the repository at this point in the history
  3. small work on testing

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    90c6307 View commit details
    Browse the repository at this point in the history
  4. continue WIP on CLI template command

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    20111c4 View commit details
    Browse the repository at this point in the history
  5. docs: document the CLI 'template default' cmd

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    a95bdc5 View commit details
    Browse the repository at this point in the history
  6. update README and TODO

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    7a85714 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. WIP class to dump a directory tree to console

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    b62e10b View commit details
    Browse the repository at this point in the history
  2. fix missing f-string tag

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    6b87041 View commit details
    Browse the repository at this point in the history
  3. handle missing directory or not a dir in FileTree

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    2f583ec View commit details
    Browse the repository at this point in the history
  4. refactor FileTree to use a subclass of Path

    adding a method to fully expand the path with user and env vars
    
    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    30e844d View commit details
    Browse the repository at this point in the history
  5. fix some linting issues

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    e69bb25 View commit details
    Browse the repository at this point in the history
  6. use correct linted bypass switch

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    25e2d4d View commit details
    Browse the repository at this point in the history
  7. further linting fixes

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    bf7ffd0 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. settings: set template_folder by default

    defaults to '~/.pymaker/template'
    
    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    836945e View commit details
    Browse the repository at this point in the history
  2. complete the CLI 'template' command'

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    21b2828 View commit details
    Browse the repository at this point in the history
  3. little tweak to the default settings

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    ec0278c View commit details
    Browse the repository at this point in the history
  4. add another linter and fix warnings

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    f9ff24b View commit details
    Browse the repository at this point in the history
  5. set default license to 'None'

    empty license was bypassing choices and causing Exception
    
    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    ef4ffcc View commit details
    Browse the repository at this point in the history
  6. rename some commands internally

    CLI template 'set' was shadowing the python 'set' cmd
    
    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    8a0aa5d View commit details
    Browse the repository at this point in the history
  7. update TODO

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    ae3be87 View commit details
    Browse the repository at this point in the history
  8. docs: more into on modifying the template

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    5555574 View commit details
    Browse the repository at this point in the history
  9. fix failing test

    Signed-off-by: Grant Ramsay <[email protected]>
    seapagan committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    120f9e1 View commit details
    Browse the repository at this point in the history