@@eliy8378 find a solution USE RUFF Extension in vscode it is all in one extension that has formatter, isort, typecherker functions as well. Also too fast.
What is the difference between Microsoft Python Extension and Pylint? I thought MS Extension performed listing as well. Or am I missing something 🤔 Sorry, I'm a newbie 😅
Microsoft Python extension has a lot of the main settings that make Python easy to use in VS Code. It has the debugger in it, test configurations, "IntelliSense" which helps with syntax and auto-completion, code navigation. It used to have linting settings, but they've been moved to separate extensions to allow for users to be in charge of their own configurations and it makes room for awesome extensions like Ruff! In this video I used Pylint, but I plan on doing a video about Ruff coming up.
I'd love to see an episode about how to manage multiple versions of python as your python interpreter. For example I have many repos on different versions of python and I use asdf or pyenv and venv to create unique environments for each repo. Sometimes VSCode picks up the interpreter and sometimes it doesn't but I'm also not always sure about which one to pick. Pointers on that would be helpful to me. Or of there's another/better way to manage that sort of thing I'd love to hear about that too.
Conda (mamba-forge is the same but quicker) is slightly better for this and also managing package environments too. Still have to select the interpreter in VSCode though.
I am confused, Pylint is also a separate library, do I need to have the library and extension both installed or only the extension works? Same doubt I had for formatters, theres a "Black Formatter." available too and which is a library as well.
I think the extension comes bundled up with the linter, you just need python, not the library. However, you can use your own pylint library with the extension, you can do that by specifying it's path in Settings along with custom arguments. Here's an exerpt from the settings for your convenience: Pylint: Path Path or command to be used by the extension to lint Python files with Pylint. Accepts an array of a single or multiple strings. If passing a command, each argument should be provided as a separate string in the array. If set to ["pylint"], it will use the version of Pylint available in the PATH environment variable. Note: Using this option may slowdown linting. Examples: ["~/global_env/pylint"] ["conda", "run", "-n", "lint_env", "python", "-m", "pylint"] ["pylint"]