Skip to content

Commit 363e3db

Browse files
committed
ruff
1 parent 84e81f1 commit 363e3db

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

roboflow/core/version.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -823,10 +823,9 @@ def __download_zip(self, link, location, format):
823823
def bar_progress(current, total, width=80):
824824
progress_message = (
825825
"Downloading Dataset Version Zip in "
826-
+ location
827-
+ " to "
828-
+ format
829-
+ ": %d%% [%d / %d] bytes" % (current / total * 100, current, total)
826+
f"{location} to "
827+
f"{format}: "
828+
f"{current/total*100:.0f}% [{current} / {total}] bytes"
830829
)
831830
sys.stdout.write("\r" + progress_message)
832831
sys.stdout.flush()

roboflow/deployment.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ def is_valid_ISO8601_timestamp(ts):
1010
try:
1111
datetime.fromisoformat(ts)
1212
return True
13-
except:
13+
except: # noqa: E722
1414
return False
1515

16-
1716
def check_from_to_timestamp(from_timestamp, to_timestamp, default_timedelta):
1817
if from_timestamp and not is_valid_ISO8601_timestamp(from_timestamp):
1918
print("Please provide a valid from_timestamp in ISO8601 format (YYYY-MM-DD HH:MM:SS)")

0 commit comments

Comments
 (0)