diff --git a/Makefile b/Makefile index 470e3e5..02954cf 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,8 @@ ISSO_CSS_DST := isso/css/isso.css ISSO_CSS_SRC := isso/css/isso.scss ISSO_CSS_SRC_DEPS := $(shell find isso/css -type f | grep .scss) +ISSO_PY_SRC := $(shell git ls-files | grep .py) + RST := $(shell find docs/ -type f -name '*.rst') MAN := man/man1/isso.1 man/man5/isso.conf.5 @@ -37,12 +39,12 @@ ${CSS}: docs/_static/css/site.scss site: $(RST) $(WWW) $(CSS) cd docs && sphinx-build -b dirhtml . _build/html -coverage: +coverage: $(ISSO_PY_SRC) nosetests --with-doctest --with-coverage --cover-package=isso \ --cover-html isso/ specs/ clean: rm -f $(MAN) $(CSS) $(ISSO_JS_DST) $(ISSO_CSS_DST) -.PHONY: clean site man init js css +.PHONY: clean site man init js css coverage diff --git a/isso/wsgi.py b/isso/wsgi.py index f0a9380..984ada4 100644 --- a/isso/wsgi.py +++ b/isso/wsgi.py @@ -20,7 +20,7 @@ from werkzeug.datastructures import Headers from isso.compat import string_types -def host(environ): +def host(environ): # pragma: no cover """ Reconstruct host from environment. A modified version of http://www.python.org/dev/peps/pep-0333/#url-reconstruction