LoginSignup
3

More than 5 years have passed since last update.

pep8に準拠する

Last updated at Posted at 2017-05-02

参考:
Pythonのコーディング規約PEP8に準拠する

Pythonのスタイルガイドとそれを守るための各種Lint・解析ツールまとめ!

インストール:

pip install pep8
pip install pyflakes #pythonの論理的なエラーのみを検出

pep8を実行

$ pep8 [ファイル名]

問題箇所を表示

$ pep8 --show-source (ファイル名)

直し方の説明を見る

$ pep8 --show-pep8 (ファイル名)

pyflakesを実行

$ pyflakes (ファイル名)

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3