From 373510e2ef77d6d2e482ff89de4c3842e6671597 Mon Sep 17 00:00:00 2001 From: Sean Mackesey Date: Mon, 18 Sep 2023 20:16:31 -0400 Subject: [PATCH] [pyright] check=False subprocess output (#16609) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary & Motivation 🤦 ## How I Tested These Changes `make pyright` --- scripts/run-pyright.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run-pyright.py b/scripts/run-pyright.py index 57fea8fcfd5ba..2cbd6bb7c9bf3 100755 --- a/scripts/run-pyright.py +++ b/scripts/run-pyright.py @@ -348,7 +348,7 @@ def run_pyright( shell_cmd = " \\\n".join([base_pyright_cmd, *[f" {p}" for p in paths or []]]) print(f"Running pyright for environment `{env}`...") print(f" {shell_cmd}") - result = subprocess.run(shell_cmd, capture_output=True, shell=True, text=True, check=True) + result = subprocess.run(shell_cmd, capture_output=True, shell=True, text=True, check=False) try: json_result = json.loads(result.stdout) except json.JSONDecodeError: