-
Notifications
You must be signed in to change notification settings - Fork 110
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
Refactor a number of pylint observations #3966
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can one of the admins verify this patch? |
Jenkins add to whitelist |
Refactored reported inconsistent return statements where (usually) the issue was not returning 'None' although this is implicitly done.
fb61e5a
to
b2e26be
Compare
Adds disable unexpected-keyword-arg to avoid false report for unittest
Refactored instance of try-except-raise to include no-op pass statement.
Refactors variables that used builtin names. Replace Sphinx copyright variable with alias project_copyright.
Renames func argument keyword to _func. Adds default value for _func argument. Adds guard if _func is not provided, function should return None.
b2e26be
to
58698cc
Compare
Codecov Report
@@ Coverage Diff @@
## main #3966 +/- ##
==========================================
+ Coverage 58.04% 58.19% +0.14%
==========================================
Files 544 543 -1
Lines 41034 40811 -223
Branches 3772 3716 -56
==========================================
- Hits 23819 23750 -69
+ Misses 16232 16084 -148
+ Partials 983 977 -6
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #3965
Approach
Resolved some pylint errors, warnings and refactors
Pre review checklist
Adding labels helps the maintainers when writing release notes. This is the list of release note labels.