-
Notifications
You must be signed in to change notification settings - Fork 115
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
Bump pylint
to 2.8.0
#295
Bump pylint
to 2.8.0
#295
Conversation
@@ -158,8 +158,8 @@ def test_benchmark_with_help_command(self): | |||
|
|||
def test_benchmark_in_actual_running(self): | |||
with mock.patch( | |||
"multiprocessing.pool.Pool.map_async", # pylint: disable=bad-continuation |
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.
bad-continuation
has been removed: http://pylint.pycqa.org/en/latest/whatsnew/2.6.html
with zipfile.ZipFile(ext_file, 'r') as zip_ref: | ||
zip_ref.extractall(ext_dir) |
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.
Fix:
Consider using 'with' for resource-allocating operations (consider-using-with)
@@ -162,6 +162,7 @@ def benchmark(commands=None, runs=20): | |||
for raw_command in commands: | |||
logger.info("Measuring %s...", raw_command) | |||
|
|||
# pylint: disable=consider-using-with |
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.
azdev/operations/performance.py
is unfinished and out of maintenance.
missing-docstring, | ||
too-many-arguments, | ||
raise-missing-from, |
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.
raise-missing-from
should not be forced:
W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
@@ -1,17 +1,18 @@ | |||
[MESSAGES CONTROL] | |||
# For all codes, run 'pylint --list-msgs' or go to 'http://pylint-messages.wikidot.com/all-codes' | |||
disable= | |||
invalid-name, | |||
cyclic-import, |
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 recommend adding explanation of why disable them.
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.
Good suggestion, but let's keep it for now as this is only for azdev
. CLI's pylintrc
has detailed explanation.
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 removed unused items. The rest of them is self-explanatory.
'pyyaml', | ||
'requests', | ||
'sphinx==1.6.7', | ||
'tox', | ||
'wheel==0.30.0', | ||
'azure-multiapi-storage', | ||
'isort==4.3.21' |
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.
Why remove 'isort==4.3.21'
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.
Replace #294
Bump pylint to 2.8.0 to support Python 3.9 (Azure/azure-cli#17368)