Which Python linter do you use in VS Code?
VS Code gives the following choices for a linter:
- bandit
- flake8
- mypy
- prospector
- pycodestyle
- pydocstyle
- pylama
- pylint
Which one do you use and why?
Update: October 12, 2020
Since I want to use VS Code integration while linting remotely on a Raspberry Pi 4, speed is important in this scenario.
This is my very rudimentary benchmark of several linters.
| Program | Speed |
|---|---|
| bandit | not a linter |
| flake8 | fast |
| mypy | very slow |
| prospector | very slow |
| pycodestyle | not a linter |
| pydocstyle | not a linter |
| pylama | good |
| pylint | slow |
For VS Code, I am using the following Flake8 Args. This is simply to accommodate my own coding style.
- –ignore
- E201,E202,E226,E231,E302,E501
See Also