-
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.17 #351
Bump Pylint to 2.17 #351
Changes from all commits
ac7c673
44c36ee
d4070e8
1928f29
c60042d
3a22e88
87cb41c
2fd99af
998a0bc
4cd84e7
7a2c4fe
a4bb458
c57c7bf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,13 +37,13 @@ def handle_signature(self, sig, signode): | |
signode += addnodes.desc_addname(sig, sig) | ||
return sig | ||
|
||
def needs_arglist(self): # pylint: disable=no-self-use | ||
def needs_arglist(self): | ||
return False | ||
|
||
def add_target_and_index(self, name, sig, signode): | ||
signode['ids'].append(name) | ||
|
||
def get_index_text(self, modname, name): # pylint: disable=unused-argument, no-self-use | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Otherwise it raises |
||
def get_index_text(self, modname, name): # pylint: disable=unused-argument | ||
return name | ||
|
||
|
||
|
@@ -53,7 +53,7 @@ class CliGroupDirective(CliBaseDirective): | |
Field('docsource', label='Doc Source', has_arg=False, | ||
names=('docsource', 'documentsource')), | ||
Field('deprecated', label='Deprecated', has_arg=False, | ||
names=('deprecated')) | ||
names=('deprecated',)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Why this type error never found? |
||
]) | ||
|
||
|
||
|
@@ -63,23 +63,23 @@ class CliCommandDirective(CliBaseDirective): | |
Field('docsource', label='Doc Source', has_arg=False, | ||
names=('docsource', 'documentsource')), | ||
Field('deprecated', label='Deprecated', has_arg=False, | ||
names=('deprecated')) | ||
names=('deprecated',)) | ||
]) | ||
|
||
|
||
class CliArgumentDirective(CliBaseDirective): | ||
doc_field_types = copy.copy(_CLI_FIELD_TYPES) | ||
doc_field_types.extend([ | ||
Field('required', label='Required', has_arg=False, | ||
names=('required')), | ||
names=('required',)), | ||
Field('values', label='Allowed values', has_arg=False, | ||
names=('values', 'choices', 'options')), | ||
Field('default', label='Default value', has_arg=False, | ||
names=('default')), | ||
names=('default',)), | ||
Field('source', label='Values from', has_arg=False, | ||
names=('source', 'sources')), | ||
Field('deprecated', label='Deprecated', has_arg=False, | ||
names=('deprecated')) | ||
names=('deprecated',)) | ||
]) | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
import re | ||
import sys | ||
|
||
from distutils.version import LooseVersion # pylint:disable=import-error,no-name-in-module | ||
from distutils.version import LooseVersion # pylint:disable=import-error,no-name-in-module,deprecated-module | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Temporally disable this warning. |
||
from docutils import core, io | ||
|
||
from knack.log import get_logger | ||
|
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
ValueError: Error code '#' supplied to 'ignore' option does not match '^[A-Z]{1,3}[0-9]{0,3}$'
Flake8 does not support inline comments for any of the keys, so comments should be put in newline.
Related issue: PyCQA/flake8#1750
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.
When
pylint==2.11.1
, it installsmccabe
0.6.1.flake8
also requiresmccabe
, and only 4.0.1 meet the version constraint.After upgrading PyLint 2.16.1,
mccabe
becomes [required: >=0.6,<0.8, installed: 0.7.0], and flake8 becomes 6.0.0.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.
Does this issue still exist in pylint 2.17.4? https://pypi.org/project/pylint/