forked from jbillsx/approcket
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
54 lines (47 loc) · 2.31 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
GAE_VERSION=1.6.1
# pyLint
# W0142 = *args and **kwargs support
# Pointless whinging
# W0603 = Using the global statement
# R0201 = Method could be a function
# W0212 = Accessing protected attribute of client class
# W0232 = Class has no __init__ method
# W0212 = Access to a protected member _rev of a client class
# Mistakes in Parsing the AppEngine Source
# E1103: %s %r has no %r member (but some types could not be inferred)
# Usually makes sense for webapp.Handlers & Friends.
# W0221 Arguments number differs from %s method
# In Python versions < 2.6 all Exceptions inherited from Exception. py2.6 introduced BaseException
# On AppEngine we do not care much about the "serious" Exception like KeyboardInterrupt etc.
# W0703 Catch "Exception"
# R0903 Too few public methods - pointless for db.Models
# Unused Reports
# RP0401 External dependencies
# RP0402 Modules dependencies graph
# RP0101 Statistics by type
# RP0701 Raw metrics
GOOD_NAMES=
PYLINT_ARGS= --output-format=parseable -rn -iy --ignore=config.py \
--deprecated-modules=regsub,string,TERMIOS,Bastion,rexec,husoftm \
--max-public-methods=25 \
--max-line-length=110 \
--min-similarity-lines=6 \
--disable=I0011,W0201,W0142,W0603,W0403,R0201,W0212,W0232,W0212,E1103,W0221,W0703,W0404 \
--disable=RP0401,RP0402,RP0101,RP0701,RP0801 \
--ignored-classes=Struct,Model,google.appengine.api.memcache \
--dummy-variables-rgx="_|dummy|abs_url" \
--good-names=_,setUp,fd,application,$(GOOD_NAMES) \
--generated-members=request,response
PYLINT_FILES= rocket/replicator.py rocket/handler.py
check: checknodeps
checknodeps:
@# pyflakes & pep8
pep8 -r --ignore=E501 $(PYLINT_FILES)
pyflakes $(PYLINT_FILES)
@# der erste Durchlauf zeigt alle Probleme inkl. TODOs an
-sh -c 'PYTHONPATH=`python config.py`:lib/google_appengine/ pylint $(PYLINT_ARGS) $(PYLINT_FILES)'
@# im zweiten Durchlauf werden alle Nicht-TODOs als Fehler ausgegeben und verhindern ein Deployment
@echo "----------------------------------------------------------------"
@sh -c 'PYTHONPATH=`python config.py`:lib/google_appengine/ pylint $(PYLINT_ARGS) $(PYLINT_FILES)'
# clonedigger *.py modules/ lib/CentralServices/ lib/gaetk/ lib/huTools lib/huSoftM
.PHONY: check