I am planning to run an open space on static analysis at PyCon, this
afternoon at 4pm.
Everyone is invited.
If you are coming, please check the open space board for location and
in case I need to change the time.
I am trying to use pylint to check python3 code. I get "Unnecessary parens
after 'print' keyword" for every print.
I installed it with "pip3 install --user pylint" , and "cat $(which
# -*- coding: utf-8 -*-
from pylint import run_pylint
if __name__ == '__main__':
sys.argv = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv)
So I'm pretty sure I have the correct version. Is there some configuration
paramter to force python3 checking? I couldn't find anything in the docs.
I can just turn off that particular warning, but is that what everyone who
uses pylint for python 3 does?
Hi all --
We're using flake8 to test our code, and we're using pytest with
fixtures. The following code:
from staylists.tests.fixtures import fixture1 # noqa: F401
def test_case(fixture1): # noqa: F811
# Test goes here
assert 1 == 1
Generates a "lib/python/test.py:3:1: F811 redefinition of unused
'fixture1' from line 1" error during linting.
Why does it ignore the noqa flag?
Is there a better way to avoid flagging this error?