-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 609 Bytes
/
Makefile
File metadata and controls
21 lines (16 loc) · 609 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ROOT = $(shell echo "$$PWD")
COVERAGE = $(ROOT)/build/coverage
PACKAGE = analyticsclient
validate: test.requirements test quality
test.requirements:
pip install -q -r requirements.txt
test:
nosetests --with-coverage --cover-inclusive --cover-branches \
--cover-html --cover-html-dir=$(COVERAGE)/html/ \
--cover-xml --cover-xml-file=$(COVERAGE)/coverage.xml \
--cover-package=$(PACKAGE) $(PACKAGE)/
quality:
pep8 --config=.pep8 $(PACKAGE)
pylint --rcfile=.pylintrc $(PACKAGE)
# Ignore module level docstrings and all test files
pep257 --ignore=D100,D104,D203 --match='(?!test).*py' $(PACKAGE)