The following issues were found

tests/cpydiff/types_exception_loops.py
1 issues
Line too long (106/100)
Error

Line: 4 Column: 1

              """
categories: Types,Exception
description: Exception in while loop condition may have unexpected line number
cause: Condition checks are optimized to happen at the end of loop body, and that line number is reported.
workaround: Unknown
"""
l = ["-foo", "-bar"]

i = 0

            

Reported by Pylint.

tests/cpydiff/types_exception_chaining.py
1 issues
Consider explicitly re-raising using the 'from' keyword
Error

Line: 10 Column: 5

              try:
    raise TypeError
except TypeError:
    raise ValueError

            

Reported by Pylint.

tests/cpydiff/syntax_assign_expr.py
1 issues
Line too long (116/100)
Error

Line: 3 Column: 1

              """
categories: Syntax,Operators
description: MicroPython allows using := to assign to the variable of a comprehension, CPython raises a SyntaxError.
cause: MicroPython is optimised for code size and doesn't check this case.
workaround: Do not rely on this behaviour if writing CPython compatible code.
"""
print([i := -1 for i in range(4)])

            

Reported by Pylint.

tests/cpydiff/modules_struct_whitespace_in_format.py
1 issues
No exception type(s) specified
Error

Line: 12 Column: 1

              try:
    print(struct.pack("b b", 1, 2))
    print("Should have worked")
except:
    print("struct.error")

            

Reported by Pylint.

tests/unicode/file1.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              f = open("unicode/data/utf-8_1.txt", encoding="utf-8")
l = f.readline()
print(l)
print(len(l))

            

Reported by Pylint.

tests/cpydiff/modules_struct_manyargs.py
1 issues
No exception type(s) specified
Error

Line: 12 Column: 1

              try:
    print(struct.pack("bb", 1, 2, 3))
    print("Should not get here")
except:
    print("struct.error")

            

Reported by Pylint.

tests/cpydiff/modules_struct_fewargs.py
1 issues
No exception type(s) specified
Error

Line: 12 Column: 1

              try:
    print(struct.pack("bb", 1))
    print("Should not get here")
except:
    print("struct.error")

            

Reported by Pylint.

tests/basics/builtin_round.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test round() with integral values

tests = [
    False, True,
    0, 1, -1, 10
]
for t in tests:
    print(round(t))

            

Reported by Pylint.

tests/cpydiff/modules2/subpkg/bar.py
1 issues
Black listed name "bar"
Error

Line: 1 Column: 1

              
            

Reported by Pylint.

tests/cpydiff/modules/subpkg/foo.py
1 issues
Black listed name "foo"
Error

Line: 1 Column: 1

              
            

Reported by Pylint.