subprocess-run-check / W1510ΒΆ

Message emitted:

'' used without explicitly defining the value for 'check'.


The ``check`` keyword is set to False by default. It means the process launched by ```` can exit with a non-zero exit code and fail silently. It's better to set it explicitly to make clear what the error-handling behavior is.

Problematic code:

import subprocess

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

Correct code:

import subprocess

proc =["ls"], check=False)

Related links:

Created by the stdlib checker.