Skip to content

Commit 8353a6c

Browse files
LukaszMrugalacarlescufi
authored andcommitted
scripts: Fix twisterlib for ruff - F811
This fixes ruff linting error F811, where a module is reimported or otherwise redefined without being used. Signed-off-by: Lukasz Mrugala <[email protected]>
1 parent 22a875e commit 8353a6c

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

.ruff-excludes.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,6 @@
789789
"./scripts/pylib/twister/twisterlib/harness.py" = [
790790
"E501", # https://docs.astral.sh/ruff/rules/line-too-long
791791
"F541", # https://docs.astral.sh/ruff/rules/f-string-missing-placeholders
792-
"F811", # https://docs.astral.sh/ruff/rules/redefined-while-unused
793792
"UP031", # https://docs.astral.sh/ruff/rules/printf-string-formatting
794793
"UP032", # https://docs.astral.sh/ruff/rules/f-string
795794
]

scripts/pylib/twister/twisterlib/harness.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import threading
1414
import time
1515
import xml.etree.ElementTree as ET
16-
from asyncio.log import logger
1716
from collections import OrderedDict
1817
from enum import Enum
1918

0 commit comments

Comments
 (0)