feat(runfiles): Add static methods to Runfiles class to simplify interface#1656
feat(runfiles): Add static methods to Runfiles class to simplify interface#1656aignas merged 8 commits intobazel-contrib:mainfrom UebelAndre:mypy
Runfiles class to simplify interface#1656Conversation
|
cc @aignas is this one ok as well? |
aignas
left a comment
There was a problem hiding this comment.
I'll have a look at it later early next week.
aignas
left a comment
There was a problem hiding this comment.
I personally don't like the Create method, because it smells of bad polymorphism design, but at the same time i think that allowing easy type annotations is a not win. @rickeylev, what do you think?
|
If there's no blockers is this something that could be merged soon? I think it'd be good to consolidate the import paths for pypi releases and rules_python releases but that should be a separate change. |
|
@UebelAndre, just came back from holiday. Sorry for being pedantic, but as per the PR template todo checklist, could you please add a |
What do you mean "more like a commit message"? If you modify the description to your liking I can make sure my future PRs follow this pattern. |
|
Condensed the message slightly and used passive voice and reworded to sound more like what is being added/changed with the commit rather than what is proposed. Thanks a lot for the improvements to |
With this change we allow for more ergonomic creation of the runfiles
object and using type annotations:
Furthermore, the docs have been updated to describe pulling
runfileslibrary directly from
rules_pythonto avoid the complexity of needingto setup
pip_parseto use this behavior.