MAINT: Apply pre-commit

Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
This commit is contained in:
Martin Thoma
2022-03-05 09:29:23 +01:00
parent f5e33ae38f
commit e64fb6795c
536 changed files with 6267 additions and 5556 deletions

View File

@@ -62,7 +62,7 @@ while True:
won = False
my_guess = int(limit * random() + 1)
print("I'm thinking of a number between 1 and {}".format(limit))
print(f"I'm thinking of a number between 1 and {limit}")
print("Now you try to guess what it is.")
while still_guessing:
@@ -79,7 +79,7 @@ while True:
print("Too high. Try a smaller answer")
guess_count += 1
else:
print("That's it! You got it in {} tries".format(guess_count))
print(f"That's it! You got it in {guess_count} tries")
won = True
still_guessing = False
@@ -89,7 +89,7 @@ while True:
elif guess_count == limit_goal:
print("Good.")
else:
print("You should have been able to get it in only {}".format(limit_goal))
print(f"You should have been able to get it in only {limit_goal}")
insert_whitespaces()
else:
insert_whitespaces()