6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-05 04:48:00 +00:00

code: lint unused imports

Unused imports are only warnings in pylint; here we make sure that they
are processed as errors.
This commit is contained in:
Régis Behmo 2021-04-06 11:58:04 +02:00 committed by Régis Behmo
parent 17088e2fc6
commit 887ba31e09

View File

@ -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