---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
PLW1510 [*] `subprocess.run` without explicit `check` argument
 --> subprocess_run_without_check.py:4:1
  |
3 | # Errors.
4 | subprocess.run("ls")
  | ^^^^^^^^^^^^^^
5 | subprocess.run("ls", shell=True)
6 | subprocess.run(
  |
help: Add explicit `check=False`
  |
3 | # Errors.
  - subprocess.run("ls")
4 + subprocess.run("ls", check=False)
5 | subprocess.run("ls", shell=True)
  |
note: This is a display-only fix and is likely to be incorrect

PLW1510 [*] `subprocess.run` without explicit `check` argument
 --> subprocess_run_without_check.py:5:1
  |
3 | # Errors.
4 | subprocess.run("ls")
5 | subprocess.run("ls", shell=True)
  | ^^^^^^^^^^^^^^
6 | subprocess.run(
7 |     ["ls"],
  |
help: Add explicit `check=False`
  |
4 | subprocess.run("ls")
  - subprocess.run("ls", shell=True)
5 + subprocess.run("ls", check=False, shell=True)
6 | subprocess.run(
  |
note: This is a display-only fix and is likely to be incorrect

PLW1510 [*] `subprocess.run` without explicit `check` argument
 --> subprocess_run_without_check.py:6:1
  |
4 | subprocess.run("ls")
5 | subprocess.run("ls", shell=True)
6 | subprocess.run(
  | ^^^^^^^^^^^^^^
7 |     ["ls"],
8 |     shell=False,
  |
help: Add explicit `check=False`
  |
7 |     ["ls"],
  -     shell=False,
8 +     check=False, shell=False,
9 | )
  |
note: This is a display-only fix and is likely to be incorrect

PLW1510 [*] `subprocess.run` without explicit `check` argument
  --> subprocess_run_without_check.py:10:1
   |
 8 |     shell=False,
 9 | )
10 | subprocess.run(["ls"], **kwargs)
   | ^^^^^^^^^^^^^^
11 |
12 | # Non-errors.
   |
help: Add explicit `check=False`
   |
9  | )
   - subprocess.run(["ls"], **kwargs)
10 + subprocess.run(["ls"], check=False, **kwargs)
11 |
   |
note: This is a display-only fix and is likely to be incorrect
