New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Output Color Across The CLI Messages Consistent According To Convention #226
base: master
Are you sure you want to change the base?
Conversation
The build seems to be failing due to your tests |
There are some assertion errors so I guess that needs to be resolved |
It seems to be coming from test_request.py |
evalai/utils/challenges.py
Outdated
@@ -658,4 +658,4 @@ def display_leaderboard(challenge_id, phase_split_id): | |||
attributes = results[0]["leaderboard__schema"]["labels"] | |||
pretty_print_leaderboard_data(attributes, results) | |||
else: | |||
echo("Sorry, no Leaderboard results found.") | |||
echo(style("Sorry, no Challenge Phase Splits found.", bold=True, fg="red")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of the build tests are failing due to this :)
cc: @nsjcorps
@RishabhJain2018 , sorry about that. Fixed. Thanks a lot for pointing it out. I appreciate it |
I fixed all the issues from my end. Sorry about that |
@nsjcorps The build is still failing. You need to update the tests too with the new CLI outputs, also there are flake8 errors. Have a look here for more details. |
@RishabhJain2018 @pushkalkatara Please see the new, updated pull request #228 |
Changes
I used the following colors for the CLI output:
red for errors
yellow for questions
white for information responses
green for success messages
I changed it for all output messages in the EvalAI CLI