The following issues were found

tests/qemu-arm/native_test.py
2 issues
Unable to import 'native_frozen_align'
Error

Line: 1 Column: 1

              import native_frozen_align

native_frozen_align.native_x(1)
native_frozen_align.native_y(2)
native_frozen_align.native_z(3)

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              import native_frozen_align

native_frozen_align.native_x(1)
native_frozen_align.native_y(2)
native_frozen_align.native_z(3)

            

Reported by Pylint.

tests/feature_check/const.py
2 issues
Undefined variable 'const'
Error

Line: 1 Column: 5

              x = const(1)
print(x)

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              x = const(1)
print(x)

            

Reported by Pylint.

examples/unix/machine_bios.py
2 issues
Unable to import 'umachine'
Error

Line: 7 Column: 1

              # It is expected to print 0xaa55, which is a signature at the start of
# Video BIOS.

import umachine as machine

print(hex(machine.mem16[0xC0000]))

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # This example shows how to access Video BIOS memory area via machine.mem
# It requires root privilege and x86 legacy harfware (which has mentioned
# Video BIOS at all).
# It is expected to print 0xaa55, which is a signature at the start of
# Video BIOS.

import umachine as machine

print(hex(machine.mem16[0xC0000]))

            

Reported by Pylint.

tests/feature_check/coverage.py
2 issues
Statement seems to have no effect
Error

Line: 2 Column: 5

              try:
    extra_coverage
    print("coverage")
except NameError:
    print("no")

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              try:
    extra_coverage
    print("coverage")
except NameError:
    print("no")

            

Reported by Pylint.

tests/basics/dict_intern.py
2 issues
Missing module docstring
Error

Line: 1 Column: 1

              # check that interned strings are compared against non-interned strings

di = {"key1": "value"}

# lookup interned string
k = "key1"
print(k in di)

# lookup non-interned string

            

Reported by Pylint.

Constant name "k2" doesn't conform to UPPER_CASE naming style
Error

Line: 10 Column: 1

              print(k in di)

# lookup non-interned string
k2 = "key" + "1"
print(k == k2)
print(k2 in di)

# lookup non-interned string
print("".join(['k', 'e', 'y', '1']) in di)

            

Reported by Pylint.

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

Line: 5 Column: 5

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

print(uctypes.sizeof({"f": uctypes.FLOAT32}))
print(uctypes.sizeof({"f": uctypes.FLOAT64}))
print(uctypes.sizeof({"f": (uctypes.ARRAY | 0, uctypes.FLOAT32 | 2)}))
print(uctypes.sizeof({"f": (uctypes.ARRAY | 0, uctypes.FLOAT64 | 2)}))

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

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

print(uctypes.sizeof({"f": uctypes.FLOAT32}))
print(uctypes.sizeof({"f": uctypes.FLOAT64}))
print(uctypes.sizeof({"f": (uctypes.ARRAY | 0, uctypes.FLOAT32 | 2)}))

            

Reported by Pylint.

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

Line: 5 Column: 5

                  reversed
except:
    print("SKIP")
    raise SystemExit

# argument to fromkeys has no __len__
d = dict.fromkeys(reversed(range(1)))
#d = dict.fromkeys((x for x in range(1)))
print(d)

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              try:
    reversed
except:
    print("SKIP")
    raise SystemExit

# argument to fromkeys has no __len__
d = dict.fromkeys(reversed(range(1)))
#d = dict.fromkeys((x for x in range(1)))

            

Reported by Pylint.

tests/feature_check/fstring.py
2 issues
Missing module docstring
Error

Line: 1 Column: 1

              # check whether f-strings (PEP-498) are supported
a = 1
print(f"a={a}")

            

Reported by Pylint.

Constant name "a" doesn't conform to UPPER_CASE naming style
Error

Line: 2 Column: 1

              # check whether f-strings (PEP-498) are supported
a = 1
print(f"a={a}")

            

Reported by Pylint.

tests/stress/dict_create.py
2 issues
Missing module docstring
Error

Line: 1 Column: 1

              # create a large dictionary

d = {}
x = 1
while x < 1000:
    d[x] = x
    x += 1
print(d[500])

            

Reported by Pylint.

Constant name "x" doesn't conform to UPPER_CASE naming style
Error

Line: 4 Column: 1

              # create a large dictionary

d = {}
x = 1
while x < 1000:
    d[x] = x
    x += 1
print(d[500])

            

Reported by Pylint.

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

Line: 7 Column: 5

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

# test a big shallow object pointing to many unique objects
lst = [[i] for i in range(200)]
gc.collect()
print(lst)

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # test that the GC can trace nested objects

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

# test a big shallow object pointing to many unique objects

            

Reported by Pylint.