Skip to content

Commit

Permalink
flake8 corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Jun 30, 2023
1 parent 0652372 commit 5396a59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions wis2box-create-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import string
import datetime


def get_bounding_box(country_code):
"""
provide the initial bounding box for the wis2box
Expand Down Expand Up @@ -48,7 +49,7 @@ def get_bounding_box(country_code):
MIN_LON = bbox["min_lon"]
MAX_LAT = bbox["max_lat"]
MAX_LON = bbox["max_lon"]
# create bounding box as comma-separated list of four numbers
# create bounding box as comma-separated list of four numbers # noqa
bounding_box = f"{MIN_LON},{MIN_LAT},{MAX_LON},{MAX_LAT}"
else:
print(f"No bounding box found for '{country_code}'.")
Expand Down Expand Up @@ -127,8 +128,8 @@ def get_password(password_name):
answer = input()
if answer == "y":
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(8)) # noqa
print(f"{password_name}={password}")
print(f"{password_name}={password}")

while answer != "y":
if answer == "exit":
exit()
Expand All @@ -143,7 +144,7 @@ def get_password(password_name):
print(f"{password_name}={password}")
print("Is this correct? (y/n/exit)")
answer = input()

return f"{password_name}={password}\n"


Expand Down
2 changes: 1 addition & 1 deletion wis2box-management/wis2box/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def create(ctx, verbosity):
DATADIR.mkdir(parents=True, exist_ok=True)
# DATADIR_ARCHIVE.mkdir(parents=True, exist_ok=True)
# DATADIR_CONFIG.mkdir(parents=True, exist_ok=True)
#(DATADIR / 'cache').mkdir(parents=True, exist_ok=True)
# (DATADIR / 'cache').mkdir(parents=True, exist_ok=True)
(DATADIR / 'metadata' / 'discovery').mkdir(parents=True, exist_ok=True)
(DATADIR / 'metadata' / 'station').mkdir(parents=True, exist_ok=True)

Expand Down

0 comments on commit 5396a59

Please sign in to comment.