Тёмный

Python Linting in VS Code 

Visual Studio Code
Подписаться 530 тыс.
Просмотров 25 тыс.
50% 1

Опубликовано:

 

10 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 24   
@gedtoon6451
@gedtoon6451 6 месяцев назад
This video looks out of date. There is no 'Python > Linting:Pylint Enabled' check box in the latest version of vs code.
@mecrayavcin
@mecrayavcin 2 месяца назад
My Type Checker by Microsoft works fine.
@eliy8378
@eliy8378 2 месяца назад
same
@mecrayavcin
@mecrayavcin 2 месяца назад
@@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.
@mecrayavcin
@mecrayavcin 2 месяца назад
@@eliy8378 Use Ruff extension all in one
@FelipedeMorais
@FelipedeMorais 9 месяцев назад
Great video! 🎉 I would like to see more about ruff lint and format
@BajoranEngineer
@BajoranEngineer 9 месяцев назад
That sounds like a great idea!
@TomasRamoska
@TomasRamoska 9 месяцев назад
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 😅
@BajoranEngineer
@BajoranEngineer 9 месяцев назад
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.
@oleksisfraga
@oleksisfraga 9 месяцев назад
@@BajoranEngineer Yes will be great talk about how update a project using Black to Ruff
@TomasRamoska
@TomasRamoska 9 месяцев назад
@@BajoranEngineer Thank you very much for response. Appreciate your help 🙏
@Kennedy_
@Kennedy_ 9 месяцев назад
Love the startrek stack on the shelf
@oleksisfraga
@oleksisfraga 9 месяцев назад
Good tips! 🙏🏾 🎉
@BajoranEngineer
@BajoranEngineer 9 месяцев назад
Thank you, friend!
@mlevy5722
@mlevy5722 6 месяцев назад
Can Pylint actually directly correct the code linting issues inside the code or is only good at detecting them?
@Gekitsuu
@Gekitsuu 9 месяцев назад
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.
@BajoranEngineer
@BajoranEngineer 9 месяцев назад
ooooo this is a good one! :) I got some answers for you.
@noahhughes127
@noahhughes127 9 месяцев назад
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.
@BrunoSantosX
@BrunoSantosX 9 месяцев назад
Maybe VSCode for Ubuntu have difference. Any tips didn’t worked. :/
@manjy5927
@manjy5927 6 месяцев назад
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.
@gobdovan
@gobdovan 6 месяцев назад
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"]
@manjy5927
@manjy5927 6 месяцев назад
@@gobdovan thank you so much
@mmclw
@mmclw 4 месяца назад
Few months and already out of date, funny
Далее
Mastering Python Code Quality with Pylint
14:44
Просмотров 27 тыс.
🍏 Устарели ОФИЦИАЛЬНО! 🤡
00:32
5 Good Python Habits
17:35
Просмотров 523 тыс.
15 Python Libraries You Should Know About
14:54
Просмотров 387 тыс.
25 VS Code Productivity Tips and Speed Hacks
11:35
Просмотров 2,3 млн
10 Python Comprehensions You SHOULD Be Using
21:35
Просмотров 144 тыс.
Python 101: Learn the 5 Must-Know Concepts
20:00
Просмотров 1,1 млн
Pylint Tutorial - How to Write Clean Python
17:49
Просмотров 158 тыс.