Install and configure python linters in vscode
May 7, 2022
Install:
pipx install bandit && \
pipx install black && \
pipx install mypy && \
pipx install flake8 && \
pipx install isort
Configure (settings.json
):
{
"python.poetryPath": "${env:HOME}/.local/bin/poetry",
"python.linting.enabled": true,
"python.linting.banditPath": "${env:HOME}/.local/bin/bandit",
"python.linting.banditEnabled": true,
"python.linting.mypyPath": "${env:HOME}/.local/bin/mypy",
"python.linting.flake8Path": "${env:HOME}/.local/bin/flake8",
"python.formatting.blackPath": "${env:HOME}/.local/bin/black",
"python.formatting.isortPath": "${env:HOME}/.local/bin/isort"
}