Open mfekadu opened 4 years ago
Will do!
By the way, what’s a rebase? @Jason-Ku
I’ve only ever done “resolve conflicts” That’s the extent of my git-knowledge
@mfekadu Here's github's page on rebase The TL;DR for this situation is that it allows you to squash a bunch of commits into one, which will make the repo cleaner, because then if there's a bug we discover in this code its all in one commit.
There's another page here with some nice ASCII art of some other reasons you might want to use a rebase. Hope this helps 😀
What's New?
nimbus.py
scriptAwesome Code Talk
How did I do this?
Installing MonkeyType
Running MonkeyType, which generates a
monkeytype.sqlite3
Then I asked 2 simple questions "What is Foaad's email?" and "Who is the contact for Color Coded?"
Checking for what modules MonkeyType explored while the nimbus.py code was running
Telling MonkeyType to generate type annotations
Telling MonkeyType to edit our code and apply the type annotations
Addresses #14 but does not fix
Type of change (pick-one)
How Has This Been Tested?
It has not. Let's not merge this until we have tests to verify the same functionality.
However, the auto-generated type annotations can spark discussion on the functions we have written
For example, the monkeytype annotations of these function arguments mismatch the docstring Args in this
__init__
https://github.com/calpoly-csai/api/blob/41945a06af197f68719799a6676578922d192ad3/QA.py#L38-L48
MonkeyType noticed a string returned from this function when called just once. Is the return value always a string?
https://github.com/calpoly-csai/api/blob/41945a06af197f68719799a6676578922d192ad3/QA.py#L54-L55
Ah, nice! It is reassuring to see the docstring match the generated type annotation
https://github.com/calpoly-csai/api/blob/41945a06af197f68719799a6676578922d192ad3/QA.py#L71-L74
hmm.. interesting type:
DUMMY_NAME
https://github.com/calpoly-csai/api/blob/41945a06af197f68719799a6676578922d192ad3/nimbus_nlp/NIMBUS_NLP.py#L76-L86
Ah, nice! Another return type that seems legit. Or is it? Haha, I hope so!!
https://github.com/calpoly-csai/api/blob/41945a06af197f68719799a6676578922d192ad3/nimbus_nlp/save_and_load_model.py#L33
There's more, check out the files changed. I have not gone through everything.
Checklist (check-all-before-merge)
formatting help:
- [x]
means "checked' and- [ ]
means "unchecked"[ ] I documented my code according to the Google Python Style Guide
[ ] I ran
./build_docs.sh
and the docs look fine[ ] I ran
./type_check.sh
and got no errors[ ] I ran
./format.sh
because it automatically cleans my code for me 😄[ ] I ran
./lint.sh
to check for what "format" missed[ ] I added my tests to the
/tests
directory[ ] I ran
./run_tests.sh
and all the tests pass