diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-01-15 20:55:39 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-01-15 20:55:39 (GMT) |
commit | 6f58827b7f4534916fbfe818a6e0c5a64aae26b3 (patch) | |
tree | e0f830a2a3efde4c76cc34b444effa73ce9c2ec5 /pylint.sh | |
parent | efd10b8959d9094fd87912e36dd85b63e7e394aa (diff) |
Add a pylint script. No fixes for now, see TODO in the script.
Diffstat (limited to 'pylint.sh')
-rwxr-xr-x | pylint.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pylint.sh b/pylint.sh new file mode 100755 index 0000000..cd4b407 --- /dev/null +++ b/pylint.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +TODO="C0111,C0301,C0322,W0311,C0324,W0331,W0212,W0611,W0613,W0201,W0106,W0622,W0403,W0612,W0102,W0404,W0704,W0402,W0702,W0401,E0602,W0221,E1111,W0101,W0105,W0601,W0602,W0703,W0701,W0312,W0231,W0233" + +BROKEN="C0103,E1101" + +DISABLE="W0142,R0913,W0621,R0903,R0201,R0904,W0511,W0232,R0902,W0603,R0914,C0302,C0102,I0011,R0911,R0912,R0901,R0801,R0923,R0915" + +PYTHONPATH=.:./shell:$SUGAR_PREFIX/lib/python2.4/site-packages/gtk-2.0:$PYTHONPATH \ + pylint \ + --include-ids=y \ + --disable-msg=$TODO,$BROKEN,$DISABLE \ + shell sugar |