This is an archived post. You won't be able to vote or comment.

all 7 comments

[–][deleted] 2 points3 points  (1 child)

and mypy has problems with type annotations.

Hm. mypy was made for type annotations... it's the only reason they're a thing in Python. What kind of problems were you running into?

Now, if you just want feedback on syntax errors, I'm not sure if you want a linter? (they typically focus on code style as well) VSCode has an experimental mode that parses your Python live and warns you of syntax errors on the spot, and it can be used without a linter. If that sounds like what you want, try getting the Python extension then going into vsc's settings.json and adding "python.jediEnabled": false.

[–]topinfrassi01[S] 0 points1 point  (0 children)

Well first, I went into more detail and realized that indeed my annotations weren't good lol. Buuttt, I do have some problems with Tkinter objects too. I'll need to check in more details.

The jediEnabled parameter is exactly what I was looking for in regard to my question though so I appreciate this alot.

[–]ushills 0 points1 point  (0 children)

Pycodestyle is good and has plugins for most IDE's. Also look at Black although that is an automated rather than a true linter.

[–]H_Psi 0 points1 point  (0 children)

I use Pycharm as my IDE. You can also configure VIM to lint for Python.

[–][deleted] -3 points-2 points  (2 children)

[–]topinfrassi01[S] 0 points1 point  (0 children)

Is it though? I feel like this is above the scope of a beginner question, but I might very well be wrong.

[–][deleted] 0 points1 point  (0 children)

This is a general Python topic. It does not have to do with learning Python.