-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Apply minor code quality revisions #1325
chore: Apply minor code quality revisions #1325
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1325 +/- ##
=======================================
Coverage 97.50% 97.50%
=======================================
Files 63 63
Lines 3760 3760
Branches 538 538
=======================================
Hits 3666 3666
Misses 55 55
Partials 39 39
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@matthewfeickert The test seems to be failing for macOS when it tries to install tensorflow. Can you help me know if this is a fixable error? |
Thanks for your PR @akshgpt7! We'll take a look at this later today and get it reviewed, which should be easy enough. We're probably not interested in picking up additional config files or dependencies at the moment though, so right off the bat can we ask you to remove
The VMs for GHA sometimes can be finicky for Mac. I restarted the CI. |
@matthewfeickert removed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Though this PR doesn't really deal with code quality issues, but rather is just applying changes from the scan blindly. That's fine, but some of them don't really justify the noise they would add.
If you take out the ones that I've flagged I think we'd accept this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. LGTM 👍
Description
I ran DeepSource analysis on my fork of the repo, and found some interesting code quality issues that can improve the general code quality here.
This PR fixes a few of the issues detected.
Summary of changes:
elif/else
afterreturn
.if
statements to usebool()
.dict.keys()
.dict()
call.Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: