-
Notifications
You must be signed in to change notification settings - Fork 93
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
Pathlib everywhere #1773
Pathlib everywhere #1773
Conversation
There is one file missing that I need to refactor. After that it should only be getting the tests green. I'm not sure if I have time this week to address this. But it is still on my backlog. |
/bot run tests |
nebari/cli/main.py
Outdated
return value | ||
|
||
|
||
CONFIG_PATH_OPTION: Path = typer.Option( |
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.
This is the only refactor I've made. Since the configuration file and output path is used by multiple subcommands, I've defined them once at the top. This avoids duplication in the code and makes it easier to maintain.
@pmeier Looks like the Kubernetes tests fail https://github.com/nebari-dev/nebari/actions/runs/4940974457/jobs/8833155254 and also some merge conflicts |
@pmeier it looks like we will need update this PR due to the recent changes to the API. Is this something you'll have time for? |
I'm OOO for the better part of the next two weeks. Will pick it up after. Feel free to change the labels on the PR to indicstr that if necessary. |
Hi @pmeier, I know we've gone back and forth on this PR but do you have time to wrap this up? It's also worth noting that many of the changes in here will likely be overridden by the work coming from the extension-mechanism. Perhaps it would be better to wait until that work is complete... |
Unless there is some blocker I failed to see, I promise I finish it before tomorrows community meeting. |
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.
Beautiful :)
Reference Issues or PRs
Closes #1713.
What does this implement/fix?
We are Buzz Lightyear here and Woody is someone stuck on Python < 3.4. As the title implies, this replaces
os.path
withpathlib.Path
everywhere in thenebari
package except for the templates. LMK if we wantpathlib
there as well.Testing
Any other comments?