From: Michael Tremer Date: Sun, 20 Mar 2011 23:58:33 +0000 (+0100) Subject: Add script to run pychecker. X-Git-Tag: 0.9.3~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ddfb317db54795746dc2e71256edc81cd472489d;p=pakfire.git Add script to run pychecker. --- diff --git a/Makefile b/Makefile index c0a3ae4cd..2e69c825d 100644 --- a/Makefile +++ b/Makefile @@ -22,3 +22,7 @@ install: -mkdir -pv $(DESTDIR)/etc/pakfire.repos.d cp -vf examples/pakfire.conf $(DESTDIR)/etc/pakfire.conf cp -vf examples/pakfire.repos.d/* $(DESTDIR)/etc/pakfire.repos.d/ + +.PHONY: check +check: + ./runpychecker.sh diff --git a/runpychecker.sh b/runpychecker.sh new file mode 100755 index 000000000..383be9fbd --- /dev/null +++ b/runpychecker.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +pychecker --only --limit 1000 \ + --maxlines 500 --maxargs 20 --maxbranches 80 --maxlocals 60 --maxreturns 20 \ + --no-callinit --no-local --no-shadow --no-shadowbuiltin \ + --no-import --no-miximport --no-pkgimport --no-reimport \ + --no-argsused --no-varargsused --no-override \ + $(find pakfire -name "*.py" )