From 89290afcce03928068d36581febcad9de2e031d4 Mon Sep 17 00:00:00 2001 From: rblank Date: Mon, 30 May 2011 19:04:18 +0000 Subject: [PATCH] 0.13dev: Added a `pylint` make target. Unfortunately, my pylint (0.23.0) crashes, presumably in astng (0.21.1). git-svn-id: http://trac.edgewall.org/intertrac/log:/trunk@10708 af82e41b-90c4-0310-8c96-b1721e28e2e2 --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Makefile b/Makefile index b96d0e71eb..184141cdb1 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,10 @@ define HELP [testopts=...] variable containing extra options for running tests [coverageopts=...] variable containing extra options for coverage + ---------------- Code checking tasks + + pylint check code with pylint + ---------------- Standalone test server server start tracd @@ -300,6 +304,24 @@ functional-test: Trac.egg-info test-wiki: python trac/tests/allwiki.py $(testopts) +# ---------------------------------------------------------------------------- +# +# Code checking tasks +# +# ---------------------------------------------------------------------------- + +.PHONY: pylint + +pylint: + pylint \ + --include-ids=y --persistent=n --comment=n --init-import=y \ + --disable=E0102,E0211,E0213,E0602,E0611,E1002,E1101,E1102,E1103 \ + --disable=F0401 \ + --disable=W0102,W0141,W0142,W0201,W0212,W0221,W0223,W0231,W0232, \ + --disable=W0401,W0511,W0603,W0613,W0614,W0621,W0622,W0703 \ + --disable=C0103,C0111 \ + trac tracopt + # ---------------------------------------------------------------------------- # # Coverage related tasks