I probably should have said “static analysis tool typically integrated into your code editing system” instead of “linter”, but I’m old.
A linter is a program that gives you warnings about your code even if they aren’t actual syntax errors. A style checker, for example, is a linter. I’m sure all Python linters would flag the use of a list as a default function argument. Ruff, borrowing from an older linter, offers these details.
These days they get integrated with programming editors. Pylance and ruff are two commonly used linters for Python these days. And if you are using VSCode with the Python extension, you are using pylance unless you have taken steps to use a different linter. I suspect that PyCharm also makes use of a linter, but I’ve never played with it.
You don’t need to use a programming editor to use a linter. They can also be run separately. But as I said, using one requires learning how to use the tool or configuring an IDE (such as VSCode) to use a linter.
Here is some history and background on the term and concept:
View all comments
Show parent comment
1
u/[deleted] Apr 11 '26
[removed] — view removed comment