Short answer: you cannot.
Pylint uses the built-in Python analyzer and also receives standard library information upon request, so the version of Python running Pylint has a big impact on its output.
You must have several Pylint installations if you want to use them to test Python 2 and Python 3 code.
source share