From 887ba31e094902888529ff6a3db557350d2306f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Tue, 6 Apr 2021 11:58:04 +0200 Subject: [PATCH] code: lint unused imports Unused imports are only warnings in pylint; here we make sure that they are processed as errors. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 06edc61..28a36e5 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ test-format: ## Run code formatting tests black --check --diff $(BLACK_OPTS) test-lint: ## Run code linting tests - pylint --errors-only --ignore=templates ${SRC_DIRS} + pylint --errors-only --enable=unused-import --ignore=templates ${SRC_DIRS} test-unit: ## Run unit tests python -m unittest discover tests