From 372a81b9ef5788c7d419962adefee53e2b76aa46 Mon Sep 17 00:00:00 2001 From: matejcik Date: Mon, 3 Sep 2018 15:38:50 +0200 Subject: [PATCH] build: add phony targets to makefile, to rerun anytime also add excludes to `autoflake`, otherwise it mangles `messages/__init__.py` --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ede17f39a1..76546e5a68 100644 --- a/Makefile +++ b/Makefile @@ -19,9 +19,11 @@ clean: style: black $(STYLE_TARGETS) isort --apply --recursive $(STYLE_TARGETS) --skip-glob "*/$(EXCLUDE_TARGETS)/*" - autoflake -i --remove-all-unused-imports -r $(STYLE_TARGETS) + autoflake -i --remove-all-unused-imports -r $(STYLE_TARGETS) --exclude "$(EXCLUDE_TARGETS)" stylecheck: black --check $(STYLE_TARGETS) isort --diff --check-only --recursive $(STYLE_TARGETS) --skip-glob "*/$(EXCLUDE_TARGETS)/*" flake8 + +.PHONY: all build install clean style stylecheck