.. _subprocess-run-check:

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:**

.. literalinclude:: /data/messages/s/subprocess-run-check/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/s/subprocess-run-check/good.py
   :language: python



Created by the `stdlib <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/stdlib.py>`__ checker.