blob: caf7f31f8351d8a68dc26b9f38551b59850381de (
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
33
34
35
36
|
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= \
--disable=star-args \
./custodia
clean:
rm -fr build dist *.egg-info .tox
rm -f server_socket
find ./ -name '*.py[co]' -exec rm -f {} \;
find ./ -name __pycache__ -exec rm -rf {} \;
cscope:
git ls-files | xargs pycscope
test:
pylint -d c,r,i,W0613 -r n -f colorized \
--notes= \
--disable=star-args \
./tests
rm -f .coverage
tox -epep8
tox
DOCS_DIR = docs
.PHONY: docs
docs:
$(MAKE) -C $(DOCS_DIR) html
|