pylint-errors

W1508 (invalid-envvar-default)

:x: Problematic code:

import os

env = os.getenv('SECRET_KEY', 1)

:heavy_check_mark: Correct code:

import os

env = os.getenv('SECRET_KEY', '1')

Rationale:

Env manipulation functions return None or str values. Supplying anything different as a default may cause bugs. See https://docs.python.org/3/library/os.html#os.getenv for more details.