-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.check
40 lines (28 loc) · 887 Bytes
/
Makefile.check
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
PYTHONSOURCES := $(shell find igor -name \*.py -not -path */hacks.py)
XMLSOURCES := $(shell find . -name \*.xml -or -name \*.xsl)
#
# Check related stuff
#
check-local: check-static-doctests check-static-pep8 check-static-pyflakes check-static-pylint
@echo -e "---\n Passed $@\n---"
check-static-xmllint: $(XMLSOURCES:%=%.xmllint)
@echo Passed $@
%.xmllint:
xmllint --noout "$*"
check-static-doctests: $(PYTHONSOURCES:%=%.doctest)
@echo Passed $@
%.doctest:
PYTHONPATH=. python -m doctest "$*"
check-static-pep8: $(PYTHONSOURCES:%=%.pep8)
@echo Passed $@
%.pep8:
PYTHONPATH=. pep8 -r "$*"
PYLINT=pylint -f parseable --include-ids=yes --rcfile=.pylintrc
check-static-pylint: $(PYTHONSOURCES:%=%.pylint)
@echo Passed $@
%.pylint:
PYTHONPATH=. $(PYLINT) "$*"
check-static-pyflakes: $(PYTHONSOURCES:%=%.pyflakes)
@echo Passed $@
%.pyflakes:
PYTHONPATH=. pyflakes "$*"