From the course: Create an Open-Source Project in Python
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
What is a linter? - Python Tutorial
From the course: Create an Open-Source Project in Python
What is a linter?
- [Instructor] Let's talk a bit about linter before we moved on in our chapter. What is a linter? Do you use a grammar checker when you write an article? Think of linter as a grammar checker for your code. It can be used to pick up potential errors in your code without executing your code. The linter will scan your code and check the syntax of your code. Also, it'll check other hazardous things in the code, like misspelling of variables, weird formatting, etcetera. As Python codes in a good coding style, for example, following PEP 8, will be less likely to have error. The linter will also check for code style, checking if the code is PEP 8 compliant, is common in Python linters. Using a linter not just help us to spot and avoid errors, it goes hand in hand with code formatting and help keeping code with various authors having a consistent code style. As using linter is so important in the Python ecosystem, there's some…