2 changes: 0 additions & 2 deletions 2 pyproject.toml Original file line numberDiff line numberDiff line change @@ -70,8 +70,6 @@ disable = [ "too-many-locals", "too-many-statements", "unsubscriptable-object", "unused-argument", ] [tool.pytest.ini_options]...
# pylint: disable=unused-argument, too-many-positional-arguments def __init__( self, maxiter: int = 1000, 1 change: 1 addition & 0 deletions 1 qiskit_algorithms/optimizers/gradient_descent.py Original file line numberDiff line numberDiff line change @@ -174,6 +174,7 @@ def grad(x)...
# Pointless # W0142 = *args and **kwargs support # W0403 = Relative imports # W0613 = Unused argument # W0232 = Class has no init method # R0903 = Too few public methods # R0913 = Too many arguments # C0103 = Invalid name # R0914 = Too many local variables # C0304 = Fina...
$)|dummy|^ignored_|^unused_#Argument names that match this expression will be ignored. Default to name#with leading underscore.ignored-argument-names=_.*|^ignored_|^unused_#Tells whether we should check for unused import
"""pylint option block-disable""" __revision__ = None class Foo(object): """block-disable test""" def __init__(self): pass def meth1(self, arg): """this issues a message""" print(self) def meth2(self, arg): """and this one not 关闭一个block的unused-argument错误""" # ...
I: 3, 0: Locally disabling unused-argument (W0613) (locally-disabled) I: 42, 0: Locally disabling no-name-in-module (E0611) (locally-disabled) C: 11, 0: Line too long (81/80) (line-too-long) C:179, 0: Wrong hanging indentation. ...
# W0613-Unused argument # E1101- Has no member (countlessfalse-positives) # R0904-Too many public methods disable-msg=R0903,W0142,W0105,W0212,W0613,E1101,R0904 disable=import-error,unused-import [REPORTS] # set the output format. Available formats are text, parseable, colorized and ...
# W0613 - Unused argument # E1101 - Has no member (countless false-positives) # R0904 - Too many public methods disable-msg=R0903,W0142,W0105,W0212,W0613,E1101,R0904 disable=import-error,unused-import [REPORTS] # set the output format. Available formats are text, parseable, colorized...
在配置文件中的 [MESSAGES CONTROL] 的 disable 添加 想禁用的功能; 如:报错如下; 则在disable尾部添加 missing-docstring 即可; pylint在行级别的代码中 禁用某些功能(也就是 不对所有代码禁用某个检测,只对某行代码禁用某个检测): 教程地址:https://pylint.readthedocs.io/en/latest/user_guide/message-control...
unused-argument, import-outside-toplevel, import-error, super-with-arguments # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option # multiple time (only on the command line, no...