vscode上でpythonのlinterを有効化
visual studio codeのpython linterを「flake8」に切り替えました!
こんな感じでPEP8に則っているかどうか教えてくれます。便利。
どうするか?
Enable linters# To enable linters other than the default PyLint, open the Command Palette (⇧⌘P) and select the Python: Select Linter command. This command adds "python.linting.
Enabled": true to your settings, where is the name of the chosen linter. See Specific linters for details.
コマンドパレットを開いて「Python: Select Linter」を選択することで、デフォルトのpylint以外のlinterを有効化できます。
flake8が入っているかは「pip list」で確認し、なければインストールしましょう。