Skip to content

Commit

Permalink
flake8 and black reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-e committed Aug 18, 2024
1 parent 1036e36 commit 6f34b12
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@
if mcWorldPath[-1] == "/":
mcWorldPath = mcWorldPath[:-1]


def validate_bounding_box(bbox):
"""
Validates a bounding box represented as a string in the format "min_lng,min_lat,max_lng,max_lat".
Validates a bounding box represented as a string in
the format "min_lng,min_lat,max_lng,max_lat".
Parameters:
bbox (str): The bounding box string.
Expand All @@ -82,7 +84,7 @@ def validate_bounding_box(bbox):
"""
try:
# Split the input string into components
parts = bbox.split(',')
parts = bbox.split(",")
if len(parts) != 4:
return False

Expand Down Expand Up @@ -130,7 +132,7 @@ def run():
os._exit(1)

if args.bbox:
if validate_bounding_box(args.bbox) == False:
if validate_bounding_box(args.bbox) is False:
print("Error! Invalid bbox input")
os._exit(1)

Expand Down

0 comments on commit 6f34b12

Please sign in to comment.