I figured out how to run pylint
when saving my file in VSCode, but I don't like the fact that I'm forced to decide between pylint
and mypy
when I want both. Is there a way I can force VSCode to combine warnings from pylint
and a type checker?
Here's a setup that worked for me:
{
"python.linting.enabled": true,
"python.linting.mypyEnabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintUseMinimalCheckers": false,
"python.linting.flake8Enabled": true,
"python.linting.mypyArgs": [
"--ignore-missing-imports",
"--follow-imports=silent",
"--show-column-numbers",
"--strict"
],
"python.pythonPath": "/home/d33tah/virtualenv/bin/python"
}
It looks like I had to explicitly enable both linters and add --strict
so that it works the way I want it to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With