Refactor FormulaCreator args and call parse_url automatically#20116
Conversation
MikeMcQuaid
left a comment
There was a problem hiding this comment.
Thanks for splitting this out. A few nits but looks good so far.
b4539e5 to
4c8a0df
Compare
|
@MikeMcQuaid addressed all comments. What to do with EDIT: Nevermind. This is ready for review. |
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
|
@abitrolly Please stop pushing to this PR. I'm going to fix it. |
78a35aa to
c5d091a
Compare
|
@abitrolly Please test the latest version here. I've completed the typechecking and refactoring. |
abitrolly
left a comment
There was a problem hiding this comment.
Now I see what you mean by combining parsing logic into constructor. The assignment of instance variables became more clear. Looks good.
I kind of disagree with the way test data is processed, but that's not a blocker. Just a personal preference from Go/Python side.
MikeMcQuaid
left a comment
There was a problem hiding this comment.
@abitrolly Can you clarify whether you tested this or not? Please can we move this to a conclusion? For refactoring with no functionality change this PR has wasted a lot of time and I am losing my patience with the amount of back and forth required here.
Co-authored-by: Anatoli Babenia <anatoli@rainforce.org>
|
@MikeMcQuaid I've tested it with |
|
The conclusion is that it is ready long ago. ) |
|
Thanks @abitrolly. |
brew stylewith your changes locally?brew typecheckwith your changes locally?brew testswith your changes locally?This PR makes all
FormulaCreatorparams, except URL optional, to make test calls less verbose.Calls
parse_urlin constructor to ensure that supplied URL is automatically parsed (as discussed in https://github.com/Homebrew/brew/pull/20025/files#r2123010882).The change includes fix from #20115 that restores tests run on Linux.