subprocess-run-check / W1510#

Message emitted:

Using subprocess.run without explicitly set check is not recommended.

Description:

The check parameter should always be used with explicitly set `check` keyword to make clear what the error-handling behavior is. See https://docs.python.org/3/library/subprocess.html#subprocess.run

Problematic code:

import subprocess

proc = subprocess.run(["ls"])  # [subprocess-run-check]

Correct code:

import subprocess

proc = subprocess.run(["ls"], check=True)

Created by the stdlib checker.