From ddfb317db54795746dc2e71256edc81cd472489d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 21 Mar 2011 00:58:33 +0100 Subject: [PATCH] Add script to run pychecker. --- Makefile | 4 ++++ runpychecker.sh | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100755 runpychecker.sh 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" ) -- 2.39.5