blob: b6b23ef95f8cdfa40816af17e5457000e09ebe05 (
plain)
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
|
all: lint pep8 test docs
echo "All tests passed"
lint:
# Analyze code
# don't show recommendations, info, comments, report
# W0613 - unused argument
# Ignore cherrypy class members as they are dynamically added
pylint -d c,r,i,W0613 -r n -f colorized \
--notes= \
./custodia
pep8:
# Check style consistency
pep8 custodia
clean:
rm -fr build dist *.egg-info
find ./ -name '*.pyc' -exec rm -f {} \;
cscope:
git ls-files | xargs pycscope
test:
rm -f .coverage
nosetests -s
DOCS_DIR = docs
.PHONY: docs
docs:
$(MAKE) -C $(DOCS_DIR) html
|