2011-08-10 :-(
_ [PyChecker][python]PyChecker を入れてみた
環境
- Microsoft Windows 7
- cygwin
インストール
サイトの Download Latest Release からダウンロードして展開して setup
% tar xzf pychecker-0.8.19.tar.gz % cd pychecker-0.8.19 % python setup.py install % which pychecker /bin/pychecker
妙なところに入った
~/.pycheckrc はこんな。blacklist はモジュール単位( .py )で書くようだ。あとで書く
limit = 0 stdlib = 1 blacklist = ['foo', 'bar', 'hoge']
実行
ストラテジーパターンのアレ[ 20100725#p04 ]に実行してみる
% pychecker strategy.py Warning, option (stdlib) doesn't exist, ignoring Processing module strategy (strategy.py)... ガーガー 飛んでいまち Warnings... strategy.py:12: Redefining attribute (__init__) original line (8) strategy.py:16: No class attribute (fly_behavior) found strategy.py:19: No class attribute (quack_behavior) found strategy.py:42: Parameter (sel) not used strategy.py:42: self is not first method argument strategy.py:55: Base class (strategy.Duck) __init__() not called
うお。__init__ を 2 つ書いてた
などと
[ツッコミを入れる]