The following issues were found

examples/hwapi/hwconfig_dragonboard410c.py
2 issues
Unable to import 'machine'
Error

Line: 1 Column: 1

              from machine import Pin, Signal

# 96Boards/Qualcomm DragonBoard 410c
#
# By default, on-board LEDs are controlled by kernel LED driver.
# To make corresponding pins be available as normal GPIO,
# corresponding driver needs to be unbound first (as root):
# echo -n "soc:leds" >/sys/class/leds/apq8016-sbc:green:user1/device/driver/unbind
# Note that application also either should be run as root, or

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              from machine import Pin, Signal

# 96Boards/Qualcomm DragonBoard 410c
#
# By default, on-board LEDs are controlled by kernel LED driver.
# To make corresponding pins be available as normal GPIO,
# corresponding driver needs to be unbound first (as root):
# echo -n "soc:leds" >/sys/class/leds/apq8016-sbc:green:user1/device/driver/unbind
# Note that application also either should be run as root, or

            

Reported by Pylint.

tests/extmod/ure_stack_overflow.py
2 issues
Consider explicitly re-raising using the 'from' keyword
Error

Line: 8 Column: 9

                      import re
    except ImportError:
        print("SKIP")
        raise SystemExit

try:
    re.match("(a*)*", "aaa")
except RuntimeError:
    print("RuntimeError")

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              try:
    import ure as re
except ImportError:
    try:
        import re
    except ImportError:
        print("SKIP")
        raise SystemExit


            

Reported by Pylint.

tests/basics/ordereddict_eq.py
2 issues
Consider explicitly re-raising using the 'from' keyword
Error

Line: 8 Column: 9

                      from ucollections import OrderedDict
    except ImportError:
        print("SKIP")
        raise SystemExit

x = OrderedDict()
y = OrderedDict()
x['a'] = 1
x['b'] = 2

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              try:
    from collections import OrderedDict
except ImportError:
    try:
        from ucollections import OrderedDict
    except ImportError:
        print("SKIP")
        raise SystemExit


            

Reported by Pylint.

tests/extmod/uctypes_array_load_store.py
2 issues
Consider explicitly re-raising using the 'from' keyword
Error

Line: 7 Column: 5

                  import uctypes
except ImportError:
    print("SKIP")
    raise SystemExit

N = 5

for endian in ("NATIVE", "LITTLE_ENDIAN", "BIG_ENDIAN"):
    for type_ in ("INT8", "UINT8", "INT16", "UINT16", "INT32", "UINT32", "INT64", "UINT64"):

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # Test uctypes array, load and store, with array size > 1

try:
    import uctypes
except ImportError:
    print("SKIP")
    raise SystemExit

N = 5

            

Reported by Pylint.

tests/extmod/uctypes_bytearray.py
2 issues
Consider explicitly re-raising using the 'from' keyword
Error

Line: 5 Column: 5

                  import uctypes
except ImportError:
    print("SKIP")
    raise SystemExit

desc = {
    "arr": (uctypes.ARRAY | 0, uctypes.UINT8 | 2),
    "arr2": (uctypes.ARRAY | 2, uctypes.INT8 | 2),
}

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              try:
    import uctypes
except ImportError:
    print("SKIP")
    raise SystemExit

desc = {
    "arr": (uctypes.ARRAY | 0, uctypes.UINT8 | 2),
    "arr2": (uctypes.ARRAY | 2, uctypes.INT8 | 2),

            

Reported by Pylint.

tests/extmod/uctypes_byteat.py
2 issues
Consider explicitly re-raising using the 'from' keyword
Error

Line: 5 Column: 5

                  import uctypes
except ImportError:
    print("SKIP")
    raise SystemExit

data = bytearray(b"01234567")

print(uctypes.bytes_at(uctypes.addressof(data), 4))
print(uctypes.bytearray_at(uctypes.addressof(data), 4))

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              try:
    import uctypes
except ImportError:
    print("SKIP")
    raise SystemExit

data = bytearray(b"01234567")

print(uctypes.bytes_at(uctypes.addressof(data), 4))

            

Reported by Pylint.

tests/extmod/uctypes_error.py
2 issues
Consider explicitly re-raising using the 'from' keyword
Error

Line: 7 Column: 5

                  import uctypes
except ImportError:
    print("SKIP")
    raise SystemExit

data = bytearray(b"01234567")

# del subscr not supported
S = uctypes.struct(uctypes.addressof(data), {})

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # test general errors with uctypes

try:
    import uctypes
except ImportError:
    print("SKIP")
    raise SystemExit

data = bytearray(b"01234567")

            

Reported by Pylint.

tests/basics/op_error_memoryview.py
2 issues
Consider explicitly re-raising using the 'from' keyword
Error

Line: 6 Column: 5

                  memoryview
except:
    print("SKIP")
    raise SystemExit

# unsupported binary operators
try:
    m = memoryview(bytearray())
    m += bytearray()

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # test errors from bad operations (unary, binary, etc)
try:
    memoryview
except:
    print("SKIP")
    raise SystemExit

# unsupported binary operators
try:

            

Reported by Pylint.

tests/basics/op_error_bytearray.py
2 issues
bad operand type for unary ~: bytearray
Error

Line: 5 Column: 5

              
# unsupported unary operators
try:
    ~bytearray()
except TypeError:
    print('TypeError')

# unsupported binary operators
try:

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # test errors from bad operations (unary, binary, etc)

# unsupported unary operators
try:
    ~bytearray()
except TypeError:
    print('TypeError')

# unsupported binary operators

            

Reported by Pylint.

tests/io/builtin_print_file.py
2 issues
Consider explicitly re-raising using the 'from' keyword
Error

Line: 12 Column: 5

                  sys.stdout
except AttributeError:
    print("SKIP")
    raise SystemExit

print(file=sys.stdout)
print("test", file=sys.stdout)

try:

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # test builtin print function, using file= argument

try:
    import usys as sys
except ImportError:
    import sys

try:
    sys.stdout

            

Reported by Pylint.