Enable Ruff PLW (Pylint Warning) (#13749)

This commit is contained in:
Avasam authored and GitHub committed 2025-04-01 15:12:15 +02:00
1 parent df1206f3cb
commit eafa274f1b
14 files changed
+43 -37

No files matched your search

+2 -2
View File
@@ -24,7 +24,7 @@ def main() -> None:
sys.exit(1)
try:
subprocess.run([npx, "--version"])
subprocess.run([npx, "--version"], check=False)
except OSError:
print("error running npx; is Node.js installed?", file=sys.stderr)
sys.exit(1)
@@ -40,7 +40,7 @@ def main() -> None:
command = [npx, f"pyright@{pyright_version}"] + sys.argv[1:]
print_command(command)
ret = subprocess.run(command).returncode
ret = subprocess.run(command, check=False).returncode
sys.exit(ret)