The following issues were found

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

Line: 7 Column: 5

                  compile
except NameError:
    print("SKIP")
    raise SystemExit

# completely empty string
# uPy and CPy differ for this case
#try:
#    compile("", "stdin", "single")

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # parser tests

try:
    compile
except NameError:
    print("SKIP")
    raise SystemExit

# completely empty string

            

Reported by Pylint.

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

Line: 1 Column: 1

              from machine import Pin, Signal

# Red LED on pin LED_RED also kown as A13
LED = Signal("LED_RED", Pin.OUT)

# Green LED on pin LED_GREEN also known as A14
LED2 = Signal("LED_GREEN", Pin.OUT)

# Yellow LED on pin LED_YELLOW also known as A15

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              from machine import Pin, Signal

# Red LED on pin LED_RED also kown as A13
LED = Signal("LED_RED", Pin.OUT)

# Green LED on pin LED_GREEN also known as A14
LED2 = Signal("LED_GREEN", Pin.OUT)

# Yellow LED on pin LED_YELLOW also known as A15

            

Reported by Pylint.

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

Line: 1 Column: 1

              from machine import Pin, Signal

# ESP12 module as used by many boards
# Blue LED on pin 2, active low (inverted)
LED = Signal(2, Pin.OUT, invert=True)

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              from machine import Pin, Signal

# ESP12 module as used by many boards
# Blue LED on pin 2, active low (inverted)
LED = Signal(2, Pin.OUT, invert=True)

            

Reported by Pylint.

tests/cpydiff/core_function_userattr.py
2 issues
Missing function or method docstring
Error

Line: 9 Column: 1

              """


def f():
    pass


f.x = 0
print(f.x)

            

Reported by Pylint.

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

Line: 9 Column: 1

              """


def f():
    pass


f.x = 0
print(f.x)

            

Reported by Pylint.

tests/basics/0prelim.py
2 issues
Module name "0prelim" doesn't conform to snake_case naming style
Error

Line: 1 Column: 1

              # all tests need print to work! make sure it does work

print(1)
print('abc')

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # all tests need print to work! make sure it does work

print(1)
print('abc')

            

Reported by Pylint.

tests/cpydiff/core_function_moduleattr.py
2 issues
Missing function or method docstring
Error

Line: 9 Column: 1

              """


def f():
    pass


print(f.__module__)

            

Reported by Pylint.

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

Line: 9 Column: 1

              """


def f():
    pass


print(f.__module__)

            

Reported by Pylint.

tests/cpydiff/core_function_argcount.py
2 issues
Catching too general exception Exception
Error

Line: 9 Column: 8

              """
try:
    [].append()
except Exception as e:
    print(e)

            

Reported by Pylint.

Variable name "e" doesn't conform to snake_case naming style
Error

Line: 9 Column: 1

              """
try:
    [].append()
except Exception as e:
    print(e)

            

Reported by Pylint.

tests/cpydiff/core_fstring_repr.py
2 issues
Missing class docstring
Error

Line: 9 Column: 1

              """


class X:
    def __repr__(self):
        return "repr"

    def __str__(self):
        return "str"

            

Reported by Pylint.

Class name "X" doesn't conform to PascalCase naming style
Error

Line: 9 Column: 1

              """


class X:
    def __repr__(self):
        return "repr"

    def __str__(self):
        return "str"

            

Reported by Pylint.

tests/cpydiff/core_fstring_raw.py
2 issues
Using an f-string that does not have any interpolated variables
Error

Line: 8 Column: 1

              workaround: Unknown
"""

rf"hello"

            

Reported by Pylint.

Statement seems to have no effect
Error

Line: 8 Column: 1

              workaround: Unknown
"""

rf"hello"

            

Reported by Pylint.

tests/cpydiff/core_fstring_parser.py
2 issues
Statement seems to have no effect
Error

Line: 8 Column: 1

              workaround: Only use simple expressions inside f-strings
"""

f'{"hello {} world"}'
f"{repr({})}"

            

Reported by Pylint.

Expression "f'{repr({})}'" is assigned to nothing
Error

Line: 9 Column: 1

              """

f'{"hello {} world"}'
f"{repr({})}"

            

Reported by Pylint.