Check Python 3 Source With Pylint Running With Python 2
Some checks of Pylint are depending on whether the checked source code is of kind Python 2 or Python 3. E.g., see How to avoid Pylint warnings for constructor of inherited class in
Solution 1:
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.
Solution 2:
You can install pylint using pip3
sudo apt-get install python3-pip
sudo pip3 install pylint
Post a Comment for "Check Python 3 Source With Pylint Running With Python 2"