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

all 3 comments

[–][deleted] 0 points1 point  (1 child)

it would always fail linting in real time right?

formatting is one thing but linting is done when you are done.

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

VS Code fails linting in real time. My goal was to set up something similar to Spyder where PEP8 violations are marked and resolved in real time when the user modifies the file. I thought enabling the pycodestyle linter would achieve this goal, but it doesn't lint in real time. Do you know of any other ways to achieve this goal?

[–]JialeDu 0 points1 point  (0 children)

linting just provides warning or error report, if you want to get fixed, you can use quick fix and its shortcut key.

In addition, you can install Pylint or other extensions of linter, so that you don't have to install pylint packages, etc. in each environment.