-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Flake8 Fixes (Part1) #1550
Flake8 Fixes (Part1) #1550
Conversation
Codecov Report
@@ Coverage Diff @@
## staging #1550 +/- ##
===========================================
- Coverage 62.07% 61.86% -0.21%
===========================================
Files 84 84
Lines 8492 8436 -56
===========================================
- Hits 5271 5219 -52
+ Misses 3221 3217 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
This is great. @laserprec, were all these changes automatic or did you do them manually?
@@ -1071,16 +1076,20 @@ def user_diversity( | |||
introducing serendipity into music recommendation, WSDM 2012 | |||
|
|||
Args: | |||
train_df (pandas.DataFrame): Data set with historical data for users and items they have interacted with; contains col_user, col_item. Assumed to not contain any duplicate rows. |
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.
Have you checked that these docstrings appear as before after compilation in the docs/html ?
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.
I have but let me confirm again.
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 @miguelgfierro! Some of the fixes are done using vscode shortcut and black, but it is orchestrated manually 😝. |
Description
This a step in the a sequence of updates to our DevOps infrastructures:
Propose and draft the CI pipeline in Github ActionSetup self-hosted machines to run our GPU workloadsCreate feature parity with the existing CI pipelines (pr-gates & nightly-build)Run tests on the appropriate dependency subsetsOptimize build time for unit testsExisting flake8 Issues
In this PR, we addressed the following flake8 issues
Simple style issues (deletion/addition)
W291 trailing whitespace**W292 no newline at end of fileW391 blank line at end of file**W293 blank line contains whitespace**E303 too many blank lines (2)E262 inline comment should start with '# 'E266 too many leading '#' for block commentE265 block comment should start with '# 'E501 line too longE302 expected 2 blank lines, found 1E128 continuation line under-indented for visual indentE126 continuation line over-indented for hangingE226 missing whitespace around arithmetic operatorE401 multiple imports on one lineF541 f-string is missing placeholdersF811 redefinition of unused 'pd' from line 4F841 local variable 'a' is assigned to but never used**F401 'X' imported but unused**For reviewers: rules marked with (**) have significant number of violations and may need more attention there.
Below are the flake8 rules we can ignore permanently
If there's any other flake8 rules we wish to undo and ignore permanently, we can do that easily too 😃 .
NOTE: folders including
tests
,docs
,contrib
,examples
are excluded from flake8 checks. For more details please seetox.ini
Todo in a subsequent PR:
Coding Convention Issues
Critical issues (can be indication of potential bugs)
Checklist:
staging branch
and not tomain branch
.