Skip to content

Commit da4124b

Browse files
committed
fix: address ruff linting issues
2 parents 66be858 + cb64f9d commit da4124b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

other/snake_water_gun.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
"""
22
A simple implementation of the Snake, Water, Gun game.
33
"""
4+
<<<<<<< HEAD
5+
=======
6+
7+
import random
8+
>>>>>>> cb64f9d3ea4c19f69d60567f21cfbc41a0229195
49
import doctest
510
import random
611

@@ -47,7 +52,9 @@ def main():
4752
"""
4853
print("--- Snake, Water, Gun Game ---")
4954
player_input = (
50-
input("Enter your choice (s for snake, w for water, g for gun): ").lower().strip()
55+
input("Enter your choice (s for snake, w for water, g for gun): ")
56+
.lower()
57+
.strip()
5158
)
5259

5360
if player_input not in ["s", "w", "g"]:
@@ -66,4 +73,4 @@ def main():
6673

6774
if __name__ == "__main__":
6875
doctest.testmod() # Run the doctests
69-
main()
76+
main()

strings/min_cost_string_conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ def assemble_transformation(ops: list[list[str]], i: int, j: int) -> list[str]:
111111

112112

113113
if __name__ == "__main__":
114-
doctest.testmod()
114+
doctest.testmod()

0 commit comments

Comments
 (0)