Skip to content

Conversation

@stevario
Copy link
Contributor

@stevario stevario commented Apr 4, 2022

Small changes allowing the showoci code to be imported and called from a wrapper. The changes include:

Setting the main routine to only be called if showoci.py is called from the command line
Initiating data objects in the init routine so that they are set every time the class is instantiated
Adding optional argument to the argument parser so taht command lines can be built programmatically

stevario added 2 commits April 4, 2022 16:27
Add initialization of data structures to __init__ routines of classes.

Add the ability to call the argument parser with a command line built in a calling routine.  This allows a wrapper to build command lines.
Copy link
Member

@adizohar adizohar left a comment

Choose a reason for hiding this comment

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

Thank you for the changes, appreciate it
Can you please add empty line at end of file, if not flake8 builder fail.
Then we can merge it

Copy link
Member

@adizohar adizohar left a comment

Choose a reason for hiding this comment

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

Thank you for the additional, appreciate it, Few items to fix before we can merge

Cannot use empty Except:
showoci.py:344:13: E722 do not use bare 'except'
Please use except Exception:

Also, please fix Initate to Initiate in two comment places

Two updates per request from owner.

Changed return False to return None in the showoci.set_parter_arguments routine
Fixed typos/spelling errors in Initiate comments
Copy link
Member

@adizohar adizohar left a comment

Choose a reason for hiding this comment

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

Hi , Almost there,

Regards the except, you must use class for exception, please change to:
except Exception:

for showoci.py add empty line at the end of the file

Thank you

Copy link
Member

@adizohar adizohar left a comment

Choose a reason for hiding this comment

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

Approved to Merge

@bhagwatvyas bhagwatvyas merged commit 855adcf into oracle:master Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants