From 02a7bd5cbcbfe112d73b0526e7601ca9c8cf8026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Mon, 3 Jun 2019 12:23:05 +0200 Subject: [PATCH] No automated formatting for templates --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6784cb2..151204e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ .DEFAULT_GOAL := help +BLACK_OPTS = --exclude templates ./tutor ./tests ###### Development @@ -10,7 +11,7 @@ compile-requirements: ## Compile requirements files test: test-lint test-unit test-format ## Run all tests by decreasing order or priority test-format: ## Run code formatting tests - black --check --diff ./tutor ./tests + black --check --diff $(BLACK_OPTS) test-lint: ## Run code linting tests pylint --errors-only tutor @@ -19,7 +20,7 @@ test-unit: ## Run unit tests python3 -m unittest discover tests format: ## Format code automatically - black ./tutor ./tests + black $(BLACK_OPTS) ###### Deployment