mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-03 14:38:28 +08:00
Enable Ruff PLW (Pylint Warning) (#13749)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user