The following issues were found

tests/micropython/heapalloc_bytesio.py
4 issues
Unable to import 'micropython'
Error

Line: 7 Column: 1

                  print("SKIP")
    raise SystemExit

import micropython

data = b"1234" * 16
buf = uio.BytesIO(64)

micropython.heap_lock()

            

Reported by Pylint.

Consider explicitly re-raising using the 'from' keyword
Error

Line: 5 Column: 5

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

import micropython

data = b"1234" * 16
buf = uio.BytesIO(64)

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

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

import micropython

data = b"1234" * 16

            

Reported by Pylint.

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

Line: 9 Column: 1

              
import micropython

data = b"1234" * 16
buf = uio.BytesIO(64)

micropython.heap_lock()

buf.write(data)

            

Reported by Pylint.

tests/micropython/heapalloc_bytesio2.py
4 issues
Statement seems to have no effect
Error

Line: 7 Column: 5

                  import uio
    import micropython

    micropython.mem_total
except (ImportError, AttributeError):
    print("SKIP")
    raise SystemExit



            

Reported by Pylint.

Consider explicitly re-raising using the 'from' keyword
Error

Line: 10 Column: 5

                  micropython.mem_total
except (ImportError, AttributeError):
    print("SKIP")
    raise SystemExit


data = b"1234" * 256

before = micropython.mem_total()

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # Creating BytesIO from immutable object should not immediately
# copy its content.
try:
    import uio
    import micropython

    micropython.mem_total
except (ImportError, AttributeError):
    print("SKIP")

            

Reported by Pylint.

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

Line: 13 Column: 1

                  raise SystemExit


data = b"1234" * 256

before = micropython.mem_total()

buf = uio.BytesIO(data)


            

Reported by Pylint.

tests/micropython/heapalloc_fail_bytearray.py
4 issues
Unable to import 'micropython'
Error

Line: 3 Column: 1

              # test handling of failed heap allocation with bytearray

import micropython


class GetSlice:
    def __getitem__(self, idx):
        return idx


            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # test handling of failed heap allocation with bytearray

import micropython


class GetSlice:
    def __getitem__(self, idx):
        return idx


            

Reported by Pylint.

Too few public methods (1/2)
Error

Line: 6 Column: 1

              import micropython


class GetSlice:
    def __getitem__(self, idx):
        return idx


sl = GetSlice()[:]

            

Reported by Pylint.

Missing class docstring
Error

Line: 6 Column: 1

              import micropython


class GetSlice:
    def __getitem__(self, idx):
        return idx


sl = GetSlice()[:]

            

Reported by Pylint.

tests/micropython/heapalloc_fail_list.py
4 issues
Unable to import 'micropython'
Error

Line: 3 Column: 1

              # test handling of failed heap allocation with list

import micropython


class GetSlice:
    def __getitem__(self, idx):
        return idx


            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # test handling of failed heap allocation with list

import micropython


class GetSlice:
    def __getitem__(self, idx):
        return idx


            

Reported by Pylint.

Missing class docstring
Error

Line: 6 Column: 1

              import micropython


class GetSlice:
    def __getitem__(self, idx):
        return idx


sl = GetSlice()[:]

            

Reported by Pylint.

Too few public methods (1/2)
Error

Line: 6 Column: 1

              import micropython


class GetSlice:
    def __getitem__(self, idx):
        return idx


sl = GetSlice()[:]

            

Reported by Pylint.

tests/micropython/heapalloc_fail_memoryview.py
4 issues
Unable to import 'micropython'
Error

Line: 3 Column: 1

              # test handling of failed heap allocation with memoryview

import micropython


class GetSlice:
    def __getitem__(self, idx):
        return idx


            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # test handling of failed heap allocation with memoryview

import micropython


class GetSlice:
    def __getitem__(self, idx):
        return idx


            

Reported by Pylint.

Missing class docstring
Error

Line: 6 Column: 1

              import micropython


class GetSlice:
    def __getitem__(self, idx):
        return idx


sl = GetSlice()[:]

            

Reported by Pylint.

Too few public methods (1/2)
Error

Line: 6 Column: 1

              import micropython


class GetSlice:
    def __getitem__(self, idx):
        return idx


sl = GetSlice()[:]

            

Reported by Pylint.

tests/micropython/native_const_intbig.py
4 issues
Undefined variable 'micropython'
Error

Line: 4 Column: 2

              # check loading constants


@micropython.native
def f():
    return 123456789012345678901234567890


print(f())

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # check loading constants


@micropython.native
def f():
    return 123456789012345678901234567890


print(f())

            

Reported by Pylint.

Function name "f" doesn't conform to snake_case naming style
Error

Line: 5 Column: 1

              

@micropython.native
def f():
    return 123456789012345678901234567890


print(f())

            

Reported by Pylint.

Missing function or method docstring
Error

Line: 5 Column: 1

              

@micropython.native
def f():
    return 123456789012345678901234567890


print(f())

            

Reported by Pylint.

tests/micropython/viper_const_intbig.py
4 issues
Undefined variable 'micropython'
Error

Line: 4 Column: 2

              # check loading constants


@micropython.viper
def f():
    return 123456789012345678901234567890


print(f())

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # check loading constants


@micropython.viper
def f():
    return 123456789012345678901234567890


print(f())

            

Reported by Pylint.

Missing function or method docstring
Error

Line: 5 Column: 1

              

@micropython.viper
def f():
    return 123456789012345678901234567890


print(f())

            

Reported by Pylint.

Function name "f" doesn't conform to snake_case naming style
Error

Line: 5 Column: 1

              

@micropython.viper
def f():
    return 123456789012345678901234567890


print(f())

            

Reported by Pylint.

ports/mimxrt/boards/manifest.py
4 issues
Undefined variable 'freeze'
Error

Line: 1 Column: 1

              freeze("$(PORT_DIR)/modules")
freeze("$(MPY_DIR)/drivers/onewire")
include("$(MPY_DIR)/extmod/uasyncio/manifest.py")

            

Reported by Pylint.

Undefined variable 'freeze'
Error

Line: 2 Column: 1

              freeze("$(PORT_DIR)/modules")
freeze("$(MPY_DIR)/drivers/onewire")
include("$(MPY_DIR)/extmod/uasyncio/manifest.py")

            

Reported by Pylint.

Undefined variable 'include'
Error

Line: 3 Column: 1

              freeze("$(PORT_DIR)/modules")
freeze("$(MPY_DIR)/drivers/onewire")
include("$(MPY_DIR)/extmod/uasyncio/manifest.py")

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              freeze("$(PORT_DIR)/modules")
freeze("$(MPY_DIR)/drivers/onewire")
include("$(MPY_DIR)/extmod/uasyncio/manifest.py")

            

Reported by Pylint.

ports/esp8266/boards/GENERIC_512K/_boot.py
4 issues
Module 'gc' has no 'threshold' member
Error

Line: 3 Column: 1

              import gc

gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)

            

Reported by Pylint.

Module 'gc' has no 'mem_free' member
Error

Line: 3 Column: 15

              import gc

gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)

            

Reported by Pylint.

Module 'gc' has no 'mem_alloc' member
Error

Line: 3 Column: 31

              import gc

gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              import gc

gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)

            

Reported by Pylint.

ports/esp32/modules/apa106.py
4 issues
Unable to import 'neopixel'
Error

Line: 4 Column: 1

              # APA106driver for MicroPython on ESP32
# MIT license; Copyright (c) 2016 Damien P. George

from neopixel import NeoPixel


class APA106(NeoPixel):
    ORDER = (0, 1, 2, 3)

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # APA106driver for MicroPython on ESP32
# MIT license; Copyright (c) 2016 Damien P. George

from neopixel import NeoPixel


class APA106(NeoPixel):
    ORDER = (0, 1, 2, 3)

            

Reported by Pylint.

Too few public methods (0/2)
Error

Line: 7 Column: 1

              from neopixel import NeoPixel


class APA106(NeoPixel):
    ORDER = (0, 1, 2, 3)

            

Reported by Pylint.

Missing class docstring
Error

Line: 7 Column: 1

              from neopixel import NeoPixel


class APA106(NeoPixel):
    ORDER = (0, 1, 2, 3)

            

Reported by Pylint.