pythonのlinter色々

VSCodeでサポートしているものを見ていく。

bandit
maintained by: PyCQA
活発
セキュリティ上の問題を発見するlinter.
例ではyaml.load()
を使っているところをyaml.safe_load()
にするよう警告している。

flake8
maintained by: PyCQA
活発?
PyFlakes, pycodestyle, Ned Batchelder’s McCabe scriptのラッパーらしい。

prospector
maintained by: PyCQA
活発
これまたPylint, pycodestyle, Pyflakes, Mccabe, Dodgy, Pydocstyle, Profile-validatorをがっちゃんこ(?)してるらしい。flake8の上位互換か? 追加でPyroma, Vulture, Frosted, Mypy, Banditもサポートしてるとか。よくばりセット。

pycodestyle
maintained by: PyCQA
活発?(半年に1回くらい)
pep8改めpycodestyle. その名の通りPEP 8に準拠させる。

pydocstyle
maintained by: PyCQA
枯れてる感じがする。
docstringのlinter.

pylama
maintained by: klen
活発
珍しい個人メンテのlinter.
pycodestyle, pydocstyle, PyFlakes, Mccabe, Pylint, Radon, eradicate, Mypy, Vultureのラッパーらしい。
prospectorとは共通部分もあるがどっちが部分集合ってわけでもない。悩む。

とりあえずprospector全部盛りでつよつよなのでは。

prospector[with_pyroma,with_vulture,with_mypy,with_bandit]
で。