mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-31 21:20:23 +08:00
Enable Ruff PLW (Pylint Warning) (#13749)
This commit is contained in:
@@ -754,8 +754,8 @@ async def main() -> None:
|
||||
dists_to_update = [path.name for path in STUBS_PATH.iterdir()]
|
||||
|
||||
if args.action_level > ActionLevel.nothing:
|
||||
subprocess.run(["git", "update-index", "--refresh"], capture_output=True)
|
||||
diff_result = subprocess.run(["git", "diff-index", "HEAD", "--name-only"], text=True, capture_output=True)
|
||||
subprocess.run(["git", "update-index", "--refresh"], capture_output=True, check=False)
|
||||
diff_result = subprocess.run(["git", "diff-index", "HEAD", "--name-only"], text=True, capture_output=True, check=False)
|
||||
if diff_result.returncode:
|
||||
print("Unexpected exception!")
|
||||
print(diff_result.stdout)
|
||||
|
||||
Reference in New Issue
Block a user