stanfordmlgroup / ngboost

Natural Gradient Boosting for Probabilistic Prediction
Apache License 2.0
1.64k stars 215 forks source link

Switch to poetry and add robust contributing workflow #204

Closed mzjp2 closed 3 years ago

mzjp2 commented 3 years ago

Apologies in advance for the massive PR - I touch almost every feel. Let me try to summarise:

image

This is what make lint looks like with errors:

image

The end goal here is twofold:

The best way to review this PR, is likely to git checkout it and play around within. Things are hopefully much simpler and I'm happy to:

ryan-wolbeck commented 3 years ago

@mzjp2 Thanks Zain, I was working on exactly the same thing haha. I'm going to start reviewing now/tomorrow.

mzjp2 commented 3 years ago

@mzjp2 Thanks Zain, I was working on exactly the same thing haha. I'm going to start reviewing now/tomorrow.

Super sorry - I hadn't seen your comment on the issue. Feel free to push anything to my branch, I've allowed push access to maintainers. And please add yourself as a co-author on this PR if it does get merged in :)

ryan-wolbeck commented 3 years ago

@mzjp2 oh no problem at all, I'll commit in to here if necessary. Happy to have the contributions you have made so thank you!

mzjp2 commented 3 years ago
image

I think this is really cool (sorry for geeking out), but having a red cross on your PR + emails (if you signed up to GH notifications) telling you your PR build failed because of a linting or testing issue.

If you're the GH repo admin/mantainer of this repo and want to take it a step further, you can also enforce that the builds pass before allowing a merge (admins can bypass this if urgent), by doing the following:

I'd say leave this off for now, but something that you might want to enforce further down the line.

ryan-wolbeck commented 3 years ago

@mzjp2 Yeah I think eventually we will want to do that on PRs for sure. Setting up solid package management, like in this PR will, will make that easier for those making the PRs

alejandroschuler commented 3 years ago

This is fantastic, thank you @mzjp2. I'll let you and @ryan-wolbeck work out the details, but please do write up a contributor guide so that I can read it and stop fucking things up :)

mzjp2 commented 3 years ago

This is fantastic, thank you @mzjp2. I'll let you and @ryan-wolbeck work out the details, but please do write up a contributor guide so that I can read it and stop fucking things up :)

😂 haha - hopefully this is not unfuckable with make install - make lint and make test being all you need to do, with all the benefits of an isolated virtual environment happening in the background without being exposed to it!

angeldroth commented 3 years ago

just reading thru the PR now, really increadible work @mzjp2