====== Checking before the patch ====== ====== Checking the tree with the patch ====== New warnings added --- /tmp/tmp.3dQTujIcMA 2026-03-22 00:50:01.339619338 -0400 +++ /tmp/tmp.5GR20jQOJw 2026-03-22 00:50:02.685609451 -0400 @@ -2,3 +2,5 @@ -tools/testing/selftests/drivers/net/lib/py/env.py:167:0: C0301: Line too long (114/100) (line-too-long) -tools/testing/selftests/drivers/net/lib/py/env.py:196:0: C0301: Line too long (101/100) (line-too-long) -tools/testing/selftests/drivers/net/lib/py/env.py:197:0: C0301: Line too long (107/100) (line-too-long) +tools/testing/selftests/drivers/net/lib/py/env.py:168:0: C0301: Line too long (114/100) (line-too-long) +tools/testing/selftests/drivers/net/lib/py/env.py:197:0: C0301: Line too long (101/100) (line-too-long) +tools/testing/selftests/drivers/net/lib/py/env.py:198:0: C0301: Line too long (107/100) (line-too-long) +tools/testing/selftests/drivers/net/lib/py/env.py:399:0: C0301: Line too long (115/100) (line-too-long) +tools/testing/selftests/drivers/net/lib/py/env.py:523:0: C0301: Line too long (111/100) (line-too-long) @@ -6 +7,0 @@ -tools/testing/selftests/drivers/net/lib/py/env.py:8:0: E0401: Unable to import 'lib.py' (import-error) @@ -10,6 +11,6 @@ -tools/testing/selftests/drivers/net/lib/py/env.py:41:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) -tools/testing/selftests/drivers/net/lib/py/env.py:53:20: W0719: Raising too general exception: Exception (broad-exception-raised) -tools/testing/selftests/drivers/net/lib/py/env.py:74:0: R0903: Too few public methods (1/2) (too-few-public-methods) -tools/testing/selftests/drivers/net/lib/py/env.py:103:0: R0902: Too many instance attributes (19/7) (too-many-instance-attributes) -tools/testing/selftests/drivers/net/lib/py/env.py:180:4: C0116: Missing function or method docstring (missing-function-docstring) -tools/testing/selftests/drivers/net/lib/py/env.py:185:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) +tools/testing/selftests/drivers/net/lib/py/env.py:12:0: E0401: Unable to import 'lib.py' (import-error) +tools/testing/selftests/drivers/net/lib/py/env.py:42:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) +tools/testing/selftests/drivers/net/lib/py/env.py:54:20: W0719: Raising too general exception: Exception (broad-exception-raised) +tools/testing/selftests/drivers/net/lib/py/env.py:75:0: R0903: Too few public methods (1/2) (too-few-public-methods) +tools/testing/selftests/drivers/net/lib/py/env.py:104:0: R0902: Too many instance attributes (19/7) (too-many-instance-attributes) +tools/testing/selftests/drivers/net/lib/py/env.py:181:4: C0116: Missing function or method docstring (missing-function-docstring) @@ -17,9 +18,12 @@ -tools/testing/selftests/drivers/net/lib/py/env.py:221:12: W0719: Raising too general exception: Exception (broad-exception-raised) -tools/testing/selftests/drivers/net/lib/py/env.py:224:4: C0116: Missing function or method docstring (missing-function-docstring) -tools/testing/selftests/drivers/net/lib/py/env.py:231:12: W0719: Raising too general exception: Exception (broad-exception-raised) -tools/testing/selftests/drivers/net/lib/py/env.py:233:12: W0719: Raising too general exception: Exception (broad-exception-raised) -tools/testing/selftests/drivers/net/lib/py/env.py:250:4: C0116: Missing function or method docstring (missing-function-docstring) -tools/testing/selftests/drivers/net/lib/py/env.py:269:4: C0116: Missing function or method docstring (missing-function-docstring) -tools/testing/selftests/drivers/net/lib/py/env.py:297:0: R0902: Too many instance attributes (15/7) (too-many-instance-attributes) -tools/testing/selftests/drivers/net/lib/py/env.py:468:8: W0719: Raising too general exception: Exception (broad-exception-raised) -tools/testing/selftests/drivers/net/lib/py/env.py:491:12: W0719: Raising too general exception: Exception (broad-exception-raised) +tools/testing/selftests/drivers/net/lib/py/env.py:187:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) +tools/testing/selftests/drivers/net/lib/py/env.py:222:12: W0719: Raising too general exception: Exception (broad-exception-raised) +tools/testing/selftests/drivers/net/lib/py/env.py:225:4: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/lib/py/env.py:232:12: W0719: Raising too general exception: Exception (broad-exception-raised) +tools/testing/selftests/drivers/net/lib/py/env.py:234:12: W0719: Raising too general exception: Exception (broad-exception-raised) +tools/testing/selftests/drivers/net/lib/py/env.py:251:4: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/lib/py/env.py:270:4: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/lib/py/env.py:298:0: R0902: Too many instance attributes (17/7) (too-many-instance-attributes) +tools/testing/selftests/drivers/net/lib/py/env.py:477:8: W0719: Raising too general exception: Exception (broad-exception-raised) +tools/testing/selftests/drivers/net/lib/py/env.py:500:12: W0719: Raising too general exception: Exception (broad-exception-raised) +tools/testing/selftests/drivers/net/lib/py/env.py:529:12: W0719: Raising too general exception: Exception (broad-exception-raised) +tools/testing/selftests/drivers/net/lib/py/env.py:543:12: W0719: Raising too general exception: Exception (broad-exception-raised) @@ -28 +32 @@ -Your code has been rated at 8.73/10 (previous run: 8.73/10, +0.00) +Your code has been rated at 8.75/10 (previous run: 8.73/10, +0.02) @@ -31,3 +35,46 @@ -tools/testing/selftests/drivers/net/psp.py:521:13: R1718: Consider using a set comprehension (consider-using-set-comprehension) -tools/testing/selftests/drivers/net/psp.py:523:4: W0212: Access to a protected member _ns of a client class (protected-access) -tools/testing/selftests/drivers/net/psp.py:525:12: R1718: Consider using a set comprehension (consider-using-set-comprehension) +tools/testing/selftests/drivers/net/psp.py:415:0: C0301: Line too long (113/100) (line-too-long) +tools/testing/selftests/drivers/net/psp.py:453:0: C0301: Line too long (116/100) (line-too-long) +tools/testing/selftests/drivers/net/psp.py:468:0: C0301: Line too long (113/100) (line-too-long) +tools/testing/selftests/drivers/net/psp.py:501:0: C0301: Line too long (116/100) (line-too-long) +tools/testing/selftests/drivers/net/psp.py:515:0: C0301: Line too long (113/100) (line-too-long) +tools/testing/selftests/drivers/net/psp.py:527:0: C0301: Line too long (105/100) (line-too-long) +tools/testing/selftests/drivers/net/psp.py:548:0: C0301: Line too long (116/100) (line-too-long) +tools/testing/selftests/drivers/net/psp.py:563:0: C0301: Line too long (113/100) (line-too-long) +tools/testing/selftests/drivers/net/psp.py:611:0: C0301: Line too long (116/100) (line-too-long) +tools/testing/selftests/drivers/net/psp.py:665:0: C0301: Line too long (113/100) (line-too-long) +tools/testing/selftests/drivers/net/psp.py:1:0: C0302: Too many lines in module (1070/1000) (too-many-lines) +tools/testing/selftests/drivers/net/psp.py:412:39: W0212: Access to a protected member _nk_guest_ifname of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:465:39: W0212: Access to a protected member _nk_guest_ifname of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:490:19: W0718: Catching too general exception Exception (broad-exception-caught) +tools/testing/selftests/drivers/net/psp.py:459:46: W0613: Unused argument 'version' (unused-argument) +tools/testing/selftests/drivers/net/psp.py:459:55: W0613: Unused argument 'ipver' (unused-argument) +tools/testing/selftests/drivers/net/psp.py:484:12: W0612: Unused variable 'i' (unused-variable) +tools/testing/selftests/drivers/net/psp.py:512:39: W0212: Access to a protected member _nk_guest_ifname of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:537:19: W0718: Catching too general exception Exception (broad-exception-caught) +tools/testing/selftests/drivers/net/psp.py:506:44: W0613: Unused argument 'version' (unused-argument) +tools/testing/selftests/drivers/net/psp.py:506:53: W0613: Unused argument 'ipver' (unused-argument) +tools/testing/selftests/drivers/net/psp.py:531:12: W0612: Unused variable 'i' (unused-variable) +tools/testing/selftests/drivers/net/psp.py:560:39: W0212: Access to a protected member _nk_guest_ifname of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:553:45: W0613: Unused argument 'version' (unused-argument) +tools/testing/selftests/drivers/net/psp.py:553:54: W0613: Unused argument 'ipver' (unused-argument) +tools/testing/selftests/drivers/net/psp.py:623:38: W0212: Access to a protected member _nk_host_ifname of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:662:39: W0212: Access to a protected member _nk_guest_ifname of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:678:19: W0212: Access to a protected member _nk_guest_ifname of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:682:4: W0212: Access to a protected member _nk_host_ifname of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:683:4: W0212: Access to a protected member _nk_guest_ifname of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:818:13: R1718: Consider using a set comprehension (consider-using-set-comprehension) +tools/testing/selftests/drivers/net/psp.py:820:4: W0212: Access to a protected member _ns of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:822:12: R1718: Consider using a set comprehension (consider-using-set-comprehension) +tools/testing/selftests/drivers/net/psp.py:875:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/psp.py:884:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/psp.py:893:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/psp.py:902:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/psp.py:911:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/psp.py:920:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/psp.py:929:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/psp.py:929:27: W0613: Unused argument 'version' (unused-argument) +tools/testing/selftests/drivers/net/psp.py:949:7: W0212: Access to a protected member _ns of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:951:22: W0212: Access to a protected member _ns of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:956:27: W0212: Access to a protected member _ns_peer of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:990:10: W0212: Access to a protected member _netns of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:994:60: W0212: Access to a protected member _nk_guest_ifname of a client class (protected-access) @@ -36 +83 @@ -Your code has been rated at 9.92/10 (previous run: 9.13/10, +0.79) +Your code has been rated at 9.20/10 (previous run: 9.92/10, -0.72)