Upgrade ruff to 0.0.285 (#98647)
This commit is contained in:
parent
f318063a77
commit
3094991236
39 changed files with 109 additions and 119 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue