-
Notifications
You must be signed in to change notification settings - Fork 43
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
Feat: Add install_root
arg for get_source()
, allows users to override virtualenv base path
#268
Conversation
/fix-pr |
@tqtensor - This looks great to me. Thanks for this contribution. Can you help make the linter happy again by adding a noqa for |
Hi @aaronsteers, that issue is raised because we add too many arguments; one workaround is using kwargs or making a data class for these arguments to abstract them. I prefer to go with the data class or pydantic. |
@tqtensor I appreciate the attention to proper refactoring. However, I would rather not add additional refactoring at this time. This is in part because we have at least one other PR that is targeting this same code location; I'd prefer to avoid adding merge conflicts to resolve in related PRs, and to reduce scope/effort to get this merged. I think the simplest and safest path for now is just to add another lint ignore for now. Does that sound okay for now? |
install_root
arg for get_source()
, allows users to override virtualenv base path
This comment was marked as spam.
This comment was marked as spam.
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- airbyte/sources/util.py (7 hunks)
Files skipped from review as they are similar to previous changes (1)
- airbyte/sources/util.py
@aaronsteers, Yes, it is fine as you have a plan or ongoing work to refactor that, so I did add the #noqa for PLR0913. |
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.
Looks great! Thanks again for this contribution! 🚀
/test-pr
|
As I want to run PyAirbyte on AWS Lambda, I encountered this error because on Lambda there is one place folder that the program can write data into is
/tmp/
I searched through the current source code of PyAirbyte and found out that there is an argument named install_root to specify where the new
.venv-source-name
folder is.So, I made this change to install the source connector virtual environment to the
tmp
folder.Exception:
Summary by CodeRabbit
install_root
to functions for specifying the root directory when creating a virtual environment for connectors.