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:
parent
17088e2fc6
commit
887ba31e09
2
Makefile
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user