nixos/test-driver: remove unused imports, add pylint unused-import check

This commit is contained in:
Patrick Hilhorst 2022-01-02 23:12:21 +01:00
parent a2f5092867
commit 793a2f50f1
No known key found for this signature in database
GPG key ID: 3BB083304DADC0FF
3 changed files with 2 additions and 5 deletions

View file

@ -26,7 +26,7 @@ python3Packages.buildPythonApplication rec {
mypy --disallow-untyped-defs \
--no-implicit-optional \
--ignore-missing-imports ${src}/test_driver
pylint --errors-only ${src}/test_driver
pylint --errors-only --enable=unused-import ${src}/test_driver
black --check --diff ${src}/test_driver
'';
}

View file

@ -17,7 +17,6 @@ import threading
import time
from test_driver.logger import rootlog
from test_driver.polling_condition import PollingCondition
CHAR_TO_KEY = {
"A": "shift-a",

View file

@ -1,6 +1,4 @@
from typing import Callable, Optional, Any, List, Dict
from functools import wraps
from typing import Callable, Optional
import time
from .logger import rootlog