是否有可能运行pylint与自定义rcfile 和仅错误标志?我希望pylint在典型用法中报告警告,但是当检查在我们的CI服务器上运行时,我想使用--errors-only。 例如,假设我有test.py: """test.py -- a test of pylint's error-handling."""
def some_method():
"""Just a method.
考虑这个一段代码: def test():
"""This line is longer than 80 chars, but, for me this is ok inside a DOCSTRING,
this one is shorter.
"""
if 'This is toooooooooooooooooooooooooooooooooooo l
我得到这个假阳性警告,当我在我的代码运行pylint, E: 56, 7: Instance of 'bool' has no 'status_code' member (but some
types could not be inferred) (maybe-no-member)
从pylint-site,我看到上面的错误代码是E1103。我加入.pylintrc下面的代码下MESSAGE