-
Notifications
You must be signed in to change notification settings - Fork 8
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
creating the new mock decorator and updating the config file #49
Conversation
fixing the errors from previous commit
This PR is ready for merging in master |
alab_management/config.py
Outdated
@@ -83,7 +78,56 @@ def __init__(self): | |||
) from exc | |||
|
|||
self._path = Path(config_path).absolute() | |||
self._config = freeze_config(_config) | |||
# self._config = freeze_config(_config) |
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.
#TODO: remove the private token
@@ -22,8 +22,8 @@ class Sample: | |||
task_id: Optional[ObjectId] | |||
name: str | |||
position: Optional[str] | |||
metadata: Optional[Dict[str, Any]] = field(default_factory=dict) | |||
tags: Optional[List[str]] = field(default_factory=list) | |||
metadata: Optional[Dict[str, Any]] = field(default_factory=lambda: None) |
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.
Why cannot it default to list/dict? That should be easier for searching in the MongoDB.
the config file can now be toggled depending on whether or not the workflow is run under the "simulation" mode.
2. removed the redundancy caused by two alab_management config files 3. removed redundant --sim_mode flags from cli
@idocx @bernardusrendy, can you pls review this PR and merge if possible? |
Summary
Include a summary of major changes in bullet points:
Checklist
Before a pull request can be merged, the following items must be checked:
The easiest way to handle this is to run the following in the correct sequence on
your local machine. Start with running black on your new code. This will
automatically reformat your code to PEP8 conventions and removes most issues. Then run
pycodestyle, followed by flake8.
Run pydocstyle on your code.
type check your code.