pylint-errors

W1510 (subprocess-run-check)

:x: Problematic code:

import subprocess

proc = subprocess.run(['ls', '-l', '/dev/null'], capture_output=True)

:heavy_check_mark: Correct code:

import subprocess

proc = subprocess.run(['ls', '-l', '/dev/null'], capture_output=True, check=True)

Rationale:

The check parameter should always be used with explicitly set check keyword to make clear what the error-handling behavior is.