Enable Ruff PLW (Pylint Warning) (#13749)

This commit is contained in:
Avasam
2025-04-01 15:12:15 +02:00
committed by GitHub
parent df1206f3cb
commit eafa274f1b
14 changed files with 43 additions and 37 deletions
+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)