Python Forum

Full Version: Python Linting (newbie)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey everyone,

I just started learning to code and I chose Python 3 to start with, I hope I made the right choice!
Now I am following a tutorial and it told me to install Visual Studio Code and a "Ide" which lets me use a linter etc.

In the tutorial it shows that when he makes a mistake it shows up as a red squiggly line and when you hover over it, it shows the problem.
For me however, it only says:

"message": "invalid syntax (<unknown>, line 3)",

As you can see, it doesn't give me any " resolutions" for the problem.
In the tutorial it does show " did you mean XXXX ?"

Does anyone have an idea why this is happening?

Thanks alot!

P.S.
If anyone has a really good and clear tutorial for beginning coders on python I'll be very thankful!


Lieve.
You should show code that give that error.
Look at VS Code from start.
VS Code let you choose linter,example first install.
pip install pylint pydocstyle flake8 pep8 bandit mypy
ctrl+shift+p search python select linter try different ones.
Search python enable linter on/off,linter can be annoying to have on all time.
I usually have linter off,then turn on when want a check.
For different Python tutorial look here and in your tutorial Threads.
Thanks so much!! It worked, and thanks for the help on tutorials! <3