]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pakfire/patches/0003-Replace-pychecker-by-pylint.patch
pakfire: Import latest patches from upstream.
[people/ms/ipfire-3.x.git] / pakfire / patches / 0003-Replace-pychecker-by-pylint.patch
CommitLineData
91d1c8a9
MT
1From b09a8e635bd5c77241828abb124b65a49c867fc7 Mon Sep 17 00:00:00 2001
2From: Michael Tremer <michael.tremer@ipfire.org>
3Date: Thu, 24 Jan 2013 02:35:45 +0100
4Subject: [PATCH 03/17] Replace pychecker by pylint.
5
6---
7 Makefile | 4 ++--
8 runpychecker.sh | 8 --------
9 2 files changed, 2 insertions(+), 10 deletions(-)
10 delete mode 100755 runpychecker.sh
11
12diff --git a/Makefile b/Makefile
13index 581332c..c873463 100644
14--- a/Makefile
15+++ b/Makefile
16@@ -39,8 +39,8 @@ install: build
17 done
18
19 .PHONY: check
20-check:
21- ./runpychecker.sh
22+check: all
23+ PYTHONPATH=python/src/ pylint -E python/pakfire
24
25 .PHONY: po
26 po:
27diff --git a/runpychecker.sh b/runpychecker.sh
28deleted file mode 100755
29index 383be9f..0000000
30--- a/runpychecker.sh
31+++ /dev/null
32@@ -1,8 +0,0 @@
33-#!/bin/bash
34-
35-pychecker --only --limit 1000 \
36- --maxlines 500 --maxargs 20 --maxbranches 80 --maxlocals 60 --maxreturns 20 \
37- --no-callinit --no-local --no-shadow --no-shadowbuiltin \
38- --no-import --no-miximport --no-pkgimport --no-reimport \
39- --no-argsused --no-varargsused --no-override \
40- $(find pakfire -name "*.py" )
41--
421.8.1.2
43