-
Notifications
You must be signed in to change notification settings - Fork 11
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
Rejig #265
Rejig #265
Conversation
* Move utils out of the entry points module and move the rose-stem entry point in. * Move fileinstall into its own module. * Sort imports.
* `['a'].sort()` returns `None` not `['a']` * So `assert a.sort() == b.sort()` will always be `True`.
* Avoid having to handle None values for srcdir/rundir throughout the codebase by catching them earlier.
* A future rose stem interface will need to inject itself between config loading and processing. * So colocate the plugin processing logic into one function.
* Entry points accept missing or None values for arguments, however, this can never happen in practice. * Set the appropriate type hints and remove code paths which could not get executed.
* Amend false docstrings. * Rename a couple of modules.
opt_conf_keys: list = [] | ||
defines: list = [] | ||
rose_template_vars: list = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it be more specific? List[str]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't know the types, added the list
placeholder purely to allow the function to by type checked in the first place.
Bit of TLC in preparation for the addition of a new rose-stem interface which needs to be bodged into the middle of an existing function.
Main changes:
point in.
this can never happen in practice.
get executed.
Minor changes:
between config loading and processing.
['a'].sort()
returnsNone
not['a']
assert a.sort() == b.sort()
will always beTrue
.Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).CHANGES.md
entry included if this is a change that can affect users?.?.x
branch.