Upgrade ruff to 0.0.285 (#98647)

This commit is contained in:
Ville Skyttä 2023-08-19 15:17:17 +03:00 committed by GitHub
parent f318063a77
commit 3094991236
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 109 additions and 119 deletions

View file

@ -161,7 +161,10 @@ def main():
)
arguments = parser.parse_args()
if arguments.commit and subprocess.run(["git", "diff", "--quiet"]).returncode == 1:
if (
arguments.commit
and subprocess.run(["git", "diff", "--quiet"], check=False).returncode == 1
):
print("Cannot use --commit because git is dirty.")
return
@ -177,7 +180,7 @@ def main():
if not arguments.commit:
return
subprocess.run(["git", "commit", "-nam", f"Bumped version to {bumped}"])
subprocess.run(["git", "commit", "-nam", f"Bumped version to {bumped}"], check=True)
def test_bump_version():