PEP8(Python Enhancement Proposal 8)は、Pythonコードのスタイルガイドとして策定された公式文書です。PEPとは「Python Enhancement Proposal」の略称で、Pythonの機能追加や改善提案を行うための文書形式を指します。その中でもPEP8は、Pythonコードの書き方に関する統一的な ...
今日は、『Head First Python』の4章 “コードを再利用する” で学んだことをアウトプットします。 PEP8準拠を調べる準備 プログラムのテストが簡単にできるテストフレームワークの一つにpytestがあります。様々なテストにも使え、プラグインを追加して機能を ...
今回はコーディング規約について学びます。今までの回では特に断らずに変数やクラスに名前を付けたりしていました。また、インデントなども特に深い説明はしていません。 自分ひとりでコードを書くのであれば、自分にとってわかりやすいものをつけて ...
"You are now starting to write Python programs that have a little substance. Your programs are growing a little longer, and there is a little more structure to your programs. This is a really good ...
Pep8 has been superseded by pycodestyle. There is a linter for that, so you probably want to switch to that. This linter plugin for SublimeLinter provides an interface to pep8. It will be used with ...