Skip to content

Commit

Permalink
0.13dev: Added a pylint make target.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rblank committed May 30, 2011
1 parent cda4fe2 commit 89290af
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 89290af

Please sign in to comment.