The following issues were found

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

Line: 1 Column: 1

              # test construction of bytes from different objects

# long ints
print(ord(bytes([14953042807679334000 & 0xff])))

            

Reported by Pylint.

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

Line: 1 Column: 1

              print("".replace("a", "b"))
print("aaa".replace("b", "c"))
print("aaa".replace("a", "b", 0))
print("aaa".replace("a", "b", -5))
print("asdfasdf".replace("a", "b"))
print("aabbaabbaabbaa".replace("aa", "cc", 3))
print("a".replace("aa", "bb"))
print("testingtesting".replace("ing", ""))
print("testINGtesting".replace("ing", "ING!"))

            

Reported by Pylint.

tests/float/float_format.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test float formatting

# general rounding
for val in (116, 1111, 1234, 5010, 11111):
    print("%.0f" % val)
    print("%.1f" % val)
    print("%.3f" % val)

# make sure rounding is done at the correct precision

            

Reported by Pylint.

tests/float/float_parse.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test parsing of floats

inf = float("inf")

# it shouldn't matter where the decimal point is if the exponent balances the value
print(float("1234") - float("0.1234e4"))
print(float("1.015625") - float("1015625e-6"))

# very large integer part with a very negative exponent should cancel out

            

Reported by Pylint.

tests/float/float_parse_doubleprec.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test parsing of floats, requiring double-precision

# very large integer part with a very negative exponent should cancel out
print(float("9" * 400 + "e-100"))
print(float("9" * 400 + "e-200"))
print(float("9" * 400 + "e-400"))

# many fractional digits
print(float("." + "9" * 400))

            

Reported by Pylint.

tests/float/inf_nan_arith.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # Test behaviour of inf and nan in basic float operations

inf = float("inf")
nan = float("nan")

values = (-2, -1, 0, 1, 2, inf, nan)

for x in values:
    for y in values:

            

Reported by Pylint.

tests/float/int_big_float.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test bignum operation with float/complex

i = 1 << 65

# convert bignum to float on rhs
print("%.5g" % (2.0 * i))

# negative bignum as float
print("%.5g" % float(-i))

            

Reported by Pylint.

tests/float/int_divzero.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              try:
    1 / 0
except ZeroDivisionError:
    print("ZeroDivisionError")

try:
    0 ** -1
except ZeroDivisionError:
    print("ZeroDivisionError")

            

Reported by Pylint.

tests/float/lexer.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # since black code formatter does not allow leading decimal point with nothing
# before it, we need to test it explicitly

# fmt: off
print(.1)
# fmt: on

            

Reported by Pylint.

ports/stm32/factoryreset.c
1 issues
Syntax Error: AST broken, binary operator '=' doesn't have two operands.
Error

Line: 58

              ;

#if MICROPY_HW_ENABLE_USB
static const char fresh_pybcdc_inf[] =
#include "genhdr/pybcdc_inf.h"
;

static const char fresh_readme_txt[] =
    "This is a MicroPython board\r\n"

            

Reported by Cppcheck.