From 707e9ed7aecf3dd895376b9e8efc5e86d7d113fd Mon Sep 17 00:00:00 2001 From: Jace Browning Date: Mon, 15 Sep 2014 00:12:21 -0400 Subject: [PATCH] Add 'make fix' command --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8b7f72b..c04d8fd 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,7 @@ EASY_INSTALL := $(BIN)/easy_install RST2HTML := $(PYTHON) $(BIN)/rst2html.py PDOC := $(PYTHON) $(BIN)/pdoc PEP8 := $(BIN)/pep8 +PEP8RADIUS := $(BIN)/pep8radius PEP257 := $(BIN)/pep257 PYLINT := $(BIN)/pylint PYREVERSE := $(BIN)/pyreverse @@ -96,7 +97,7 @@ $(DEPENDS_CI): Makefile .PHONY: .depends-dev .depends-dev: env Makefile $(DEPENDS_DEV) $(DEPENDS_DEV): Makefile - $(PIP) install --upgrade docutils pdoc pylint wheel + $(PIP) install --upgrade pep8radius docutils pdoc pylint wheel touch $(DEPENDS_DEV) # flag to indicate dependencies are installed # Documentation ############################################################## @@ -149,6 +150,10 @@ pep257: .depends-ci pylint: .depends-dev $(PYLINT) $(PACKAGE) --rcfile=.pylintrc +.PHONY: fix +fix: .depends-dev + $(PEP8RADIUS) --docformatter --in-place + # Testing #################################################################### .PHONY: test