From ae8838d3414ac3bae8d4a531b2e4b3d31d51ae6f Mon Sep 17 00:00:00 2001 From: ShubhamPandey28 Date: Thu, 2 Jan 2020 23:17:22 +0530 Subject: [PATCH 1/5] Updated token commands in doc --- docs/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 656bbbd46..971eeaa5d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -83,7 +83,7 @@

Configure your Auth Token

Run this command
- evalai set_token <auth_token> + evalai set-token <auth_token>
@@ -97,7 +97,7 @@

View your Auth Token

Run this command
- evalai get_token + evalai get-token
From d98c71cabd4dfdcfabba259a06d29837b617a810 Mon Sep 17 00:00:00 2001 From: ShubhamPandey28 Date: Sat, 11 Jan 2020 22:29:52 +0530 Subject: [PATCH 2/5] Added pipfiles in made while using pipenv --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 8cbab93bc..a866b8709 100644 --- a/.gitignore +++ b/.gitignore @@ -88,6 +88,10 @@ venv/ ENV/ env3/ +# pipenv +Pipfile +Pipfile.lock + # Spyder project settings .spyderproject .spyproject From d0fa88fb2f11ba972e23a6e37d59aa3558db8b9c Mon Sep 17 00:00:00 2001 From: ShubhamPandey28 Date: Sat, 11 Jan 2020 22:30:53 +0530 Subject: [PATCH 3/5] Added text_styling.py in utils --- evalai/utils/text_styling.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 evalai/utils/text_styling.py diff --git a/evalai/utils/text_styling.py b/evalai/utils/text_styling.py new file mode 100644 index 000000000..9138077bf --- /dev/null +++ b/evalai/utils/text_styling.py @@ -0,0 +1,30 @@ + +import click +from click import echo, style + + +def print_message(message, error=False): + + style_message = "" + + index=0 + + for i in list(message.split("`")): + + if index%2: + style_message += style(i,fg="cyan") + + elif error: + style_message += style(i,fg="red",bold=True) + + else: + style_message += style(i,fg="green") + + index += 1 + + echo( + style_message, + color=True + ) + + From edc766ad2da97788e59104324f6dc15494dc33d6 Mon Sep 17 00:00:00 2001 From: ShubhamPandey28 Date: Sat, 11 Jan 2020 22:51:53 +0530 Subject: [PATCH 4/5] Fixed flake8 build error in text_styling.py --- evalai/utils/text_styling.py | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/evalai/utils/text_styling.py b/evalai/utils/text_styling.py index 9138077bf..fda8d032b 100644 --- a/evalai/utils/text_styling.py +++ b/evalai/utils/text_styling.py @@ -1,30 +1,27 @@ -import click from click import echo, style def print_message(message, error=False): - + style_message = "" - + index=0 - + for i in list(message.split("`")): - + if index%2: - style_message += style(i,fg="cyan") - + style_message += style(i, fg="cyan") + elif error: - style_message += style(i,fg="red",bold=True) - + style_message += style(i, fg="red", bold=True) + else: - style_message += style(i,fg="green") - + style_message += style(i, fg="green") + index += 1 echo( style_message, color=True - ) - - + ) \ No newline at end of file From 9da07f3bc2bbb64122abb81997da8c119e2feda5 Mon Sep 17 00:00:00 2001 From: ShubhamPandey28 Date: Sat, 11 Jan 2020 22:59:22 +0530 Subject: [PATCH 5/5] Fixed flake8 build error in text_styling.py --- evalai/utils/text_styling.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/evalai/utils/text_styling.py b/evalai/utils/text_styling.py index fda8d032b..142ee187c 100644 --- a/evalai/utils/text_styling.py +++ b/evalai/utils/text_styling.py @@ -6,11 +6,11 @@ def print_message(message, error=False): style_message = "" - index=0 + index = 0 for i in list(message.split("`")): - if index%2: + if index % 2: style_message += style(i, fg="cyan") elif error: @@ -24,4 +24,4 @@ def print_message(message, error=False): echo( style_message, color=True - ) \ No newline at end of file + )