Skip to main content
1 of 2
sthenault
  • 15.2k
  • 5
  • 40
  • 32

Short answer is : you can't.

Pylint is using the builtin Python parser, and also get standard library information on demand, so the python version running pylint as 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 codes.

sthenault
  • 15.2k
  • 5
  • 40
  • 32