ruff 0.15.5 Redirect to /tmp/tmp.TzugilAxJo and /tmp/tmp.jMPLi8hqdu Tree base: 41c3b9b6af23 ("netdevsim: support tc-ets offload") Now at: 4bcef41ac06b ("tc-testing: add a test case for ETS offload") ====== Checking before the patch ====== tools/testing/selftests/tc-testing/tdc.py:17: [F401] `time` imported but unused tools/testing/selftests/tc-testing/tdc.py:24: [F403] `from tdc_config import *` used; unable to detect undefined names tools/testing/selftests/tc-testing/tdc.py:25: [F403] `from tdc_helper import *` used; unable to detect undefined names tools/testing/selftests/tc-testing/tdc.py:27: [F401] `TdcPlugin` imported but unused tools/testing/selftests/tc-testing/tdc.py:28: [F403] `from TdcResults import *` used; unable to detect undefined names tools/testing/selftests/tc-testing/tdc.py:188: [F405] `self` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:219: [F405] `ENVIR` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:275: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:281: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:284: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:291: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:299: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:302: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:305: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:310: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:311: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:317: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:320: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:327: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:338: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:342: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:348: [F405] `outputJSON` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:348: [F405] `matchJSON` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:349: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:351: [F405] `rest` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:353: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:353: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:354: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:369: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:381: [F841] Local variable `result` is assigned to but never used tools/testing/selftests/tc-testing/tdc.py:382: [F841] Local variable `tresult` is assigned to but never used tools/testing/selftests/tc-testing/tdc.py:383: [F841] Local variable `tap` is assigned to but never used tools/testing/selftests/tc-testing/tdc.py:384: [F405] `TestResult` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:391: [F405] `TestResult` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:392: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:404: [F405] `TestResult` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:405: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:436: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:451: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:454: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:456: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:459: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:462: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:487: [F841] Local variable `ee` is assigned to but never used tools/testing/selftests/tc-testing/tdc.py:514: [F841] Local variable `tap` is assigned to but never used tools/testing/selftests/tc-testing/tdc.py:518: [F405] `TestSuiteReport` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:521: [E711] Comparison to `None` should be `cond is None` tools/testing/selftests/tc-testing/tdc.py:527: [F405] `TestResult` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:528: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:541: [F841] Local variable `output` is assigned to but never used tools/testing/selftests/tc-testing/tdc.py:542: [F405] `TestResult` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:543: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:569: [F405] `TestResult` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:570: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:625: [F405] `TestSuiteReport` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:752: [E711] Comparison to `None` should be `cond is not None` tools/testing/selftests/tc-testing/tdc.py:754: [E711] Comparison to `None` should be `cond is not None` tools/testing/selftests/tc-testing/tdc.py:806: [F405] `get_unique_item` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:891: [F405] `get_test_categories` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:894: [F405] `get_categorized_testlist` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:939: [F405] `print_test_case` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:944: [F405] `print_sll` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:948: [F405] `list_test_cases` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc_config.py:36: [F403] `from tdc_config_local import *` used; unable to detect undefined names tools/testing/selftests/tc-testing/tdc_config.py:37: [F841] Local variable `ie` is assigned to but never used tools/testing/selftests/tc-testing/tdc_config.py:41: [F405] `EXTRA_NAMES` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc_config.py:42: [F841] Local variable `ne` is assigned to but never used ====== Checking the tree with the patch ====== tools/testing/selftests/tc-testing/tdc.py:17: [F401] `time` imported but unused tools/testing/selftests/tc-testing/tdc.py:24: [F403] `from tdc_config import *` used; unable to detect undefined names tools/testing/selftests/tc-testing/tdc.py:25: [F403] `from tdc_helper import *` used; unable to detect undefined names tools/testing/selftests/tc-testing/tdc.py:27: [F401] `TdcPlugin` imported but unused tools/testing/selftests/tc-testing/tdc.py:28: [F403] `from TdcResults import *` used; unable to detect undefined names tools/testing/selftests/tc-testing/tdc.py:188: [F405] `self` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:219: [F405] `ENVIR` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:275: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:281: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:284: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:291: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:299: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:302: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:305: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:310: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:311: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:317: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:320: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:327: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:338: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:342: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:348: [F405] `outputJSON` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:348: [F405] `matchJSON` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:349: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:351: [F405] `rest` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:353: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:353: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:354: [E721] Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks tools/testing/selftests/tc-testing/tdc.py:369: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:381: [F841] Local variable `result` is assigned to but never used tools/testing/selftests/tc-testing/tdc.py:382: [F841] Local variable `tresult` is assigned to but never used tools/testing/selftests/tc-testing/tdc.py:383: [F841] Local variable `tap` is assigned to but never used tools/testing/selftests/tc-testing/tdc.py:384: [F405] `TestResult` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:391: [F405] `TestResult` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:392: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:404: [F405] `TestResult` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:405: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:436: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:451: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:454: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:456: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:459: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:462: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:487: [F841] Local variable `ee` is assigned to but never used tools/testing/selftests/tc-testing/tdc.py:514: [F841] Local variable `tap` is assigned to but never used tools/testing/selftests/tc-testing/tdc.py:518: [F405] `TestSuiteReport` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:521: [E711] Comparison to `None` should be `cond is None` tools/testing/selftests/tc-testing/tdc.py:527: [F405] `TestResult` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:528: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:541: [F841] Local variable `output` is assigned to but never used tools/testing/selftests/tc-testing/tdc.py:542: [F405] `TestResult` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:543: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:569: [F405] `TestResult` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:570: [F405] `ResultState` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:625: [F405] `TestSuiteReport` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:752: [E711] Comparison to `None` should be `cond is not None` tools/testing/selftests/tc-testing/tdc.py:754: [E711] Comparison to `None` should be `cond is not None` tools/testing/selftests/tc-testing/tdc.py:809: [F405] `get_unique_item` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:894: [F405] `get_test_categories` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:897: [F405] `get_categorized_testlist` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:942: [F405] `print_test_case` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:947: [F405] `print_sll` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc.py:951: [F405] `list_test_cases` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc_config.py:37: [F403] `from tdc_config_local import *` used; unable to detect undefined names tools/testing/selftests/tc-testing/tdc_config.py:38: [F841] Local variable `ie` is assigned to but never used tools/testing/selftests/tc-testing/tdc_config.py:42: [F405] `EXTRA_NAMES` may be undefined, or defined from star imports tools/testing/selftests/tc-testing/tdc_config.py:43: [F841] Local variable `ne` is assigned to but never used