Short answer: you can't. Pylint is using the builtin Python parser, and also get standard library information on demand, so the Python version running Pylint has a high impact on its output. You should have several Pylint installations if you want to use it to check both Python 2 and Python 3 code.