Repository navigation
tooling: Cleanups and utils - #17477
Merged
Merged
Conversation
phlax
marked this pull request as draft
July 25, 2021 14:10
phlax
force-pushed
the
tooling-cleanups-utils
branch
4 times, most recently
from
July 25, 2021 14:50
5c51988 to
dbc2f8b
Compare
Member
Author
phlax
force-pushed
the
tooling-cleanups-utils
branch
2 times, most recently
from
July 25, 2021 15:41
45422ee to
5c15509
Compare
phlax
marked this pull request as ready for review
July 25, 2021 15:41
phlax
force-pushed
the
tooling-cleanups-utils
branch
4 times, most recently
from
July 25, 2021 17:16
e5b695f to
01483be
Compare
Signed-off-by: Ryan Northey <[email protected]>
phlax
force-pushed
the
tooling-cleanups-utils
branch
from
July 25, 2021 19:57
01483be to
3811de1
Compare
Member
Author
|
@htuch i pushed again not realizing you had reviewed - could you take another look - thanks! (apologies for force-pushing after review) |
Member
Author
|
fyi, the change was removing some extraneous code that i had added in the wrong place initially |
htuch
approved these changes
Jul 26, 2021
|
|
||
| def from_yaml(path: str) -> Union[dict, list, str, int]: | ||
| """Returns the loaded python object from a yaml file given by `path`""" | ||
| with open(path) as f: |
Member
There was a problem hiding this comment.
Not that it matters a lot, but maybe we could move in the future to simpler pathlib read_text() here and write_text() below.
Member
Author
There was a problem hiding this comment.
yep, agreed
theres some things i dont like about pathlib (like the duplication with os) but tbh i find myself thinking "hmm, i could do with some kind of object-oriented path representaiton" which is in fact exactly what pathlib is
if its ok - ill go through and do some pathlib cleanups en masse at some point
leyao-daily
pushed a commit
to leyao-daily/envoy
that referenced
this pull request
Sep 30, 2021
Signed-off-by: Ryan Northey <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Ryan Northey [email protected]
Commit Message: tooling: Cleanups and utils
Additional Description:
some minor cleanups and yaml utils
this also makes yaml a dependency of
base.utilswhich will hopefully help to cut dep sprawlRisk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]