Suppose I have this method:
def test_method():
#comment here
my_variable=1
print(my_variable)
raise Exception('Exception message')
When I use pylint
, these messages were raised:
test.py:1:0: C0116: Missing function or method docstring (missing-function-docstring)
test.py:5:4: W0719: Raising too general exception: Exception (broad-exception-raised)
And with flake8
, other messages appeared:
test.py:2:5: E265 block comment should start with '# '
test.py:3:16: E225 missing whitespace around operator
Why do they raise different messages? I expect one of them should raise all above messages, since they are all PEP8 standards.
Did I miss some configuration? Or do I have to use both pylint
and flake8
in a project?