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

Correct code:

import subprocess

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

Problematic code:

import subprocess

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

Created by the stdlib checker.