[develop] Linting to the standard at pylint v2.16.#788
Merged
MichaelLueken merged 2 commits intoMay 15, 2023
Conversation
37 tasks
MichaelLueken
approved these changes
May 12, 2023
Collaborator
MichaelLueken
left a comment
There was a problem hiding this comment.
@christinaholtNOAA Tested linting on Hera and Jet. Linting passed with rating of 10.00/10. The srw_unittest.sh script was also run on Jet and the tests successfully passed. Approving this PR now.
mkavulich
approved these changes
May 12, 2023
Collaborator
mkavulich
left a comment
There was a problem hiding this comment.
Looks good to me, just had one question but not a hold-up to merge. Code now lints 10/10 on prem.
| PARMdir = os.path.join(USHdir, "..", "parm") | ||
|
|
||
| # Create an temporary experiment directory | ||
| # pylint: disable=consider-using-with |
Collaborator
There was a problem hiding this comment.
Was there a reason to not use "with" here for the temporary directory?
This file contains hidden or 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
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.
DESCRIPTION OF CHANGES:
Update the version of pylint in the GitHub Actions workflow to be consistent with the version installed on-prem. On Hera, that's v2.16. I am assuming that's consistent with the other platforms.
This required linting several files to get the test to pass with a 10/10 score.
Type of change
TESTS CONDUCTED:
Only pylint and unittests were run on Hera.
DEPENDENCIES:
n/a
DOCUMENTATION:
n/a
ISSUE:
Fixes issue #787.
CHECKLIST
LABELS (optional):
A Code Manager needs to add the following labels to this PR: