-
-
Notifications
You must be signed in to change notification settings - Fork 42
London | 25-SDC-July | Franklin Kamela | Sprint 4 | Feature/implement cowsay #159
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
base: main
Are you sure you want to change the base?
Conversation
|
Hi, I can't review your code yet. If you look at the "files changed" tab on this PR you will see the problem as there are hundreds of files that don't need to be there. It looks like you're using a virtual environment, which is a good idea if you are using multiple libraries, but needs to be handled carefully within a VCS. Could you look up how to properly handle python virtual environments within git so this problem doesn't happen? |
|
Your PR's title isn't in the expected format. Please check the expected title format, and update yours to match. Reason: Wrong number of parts separated by |s |
1 similar comment
|
Your PR's title isn't in the expected format. Please check the expected title format, and update yours to match. Reason: Wrong number of parts separated by |s |
|
Hi @LonMcGregor, i have now deleted all unnecessary files. could you please review. |
LonMcGregor
left a comment
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.
Good work implementing this, but I've left a comment in one area where it might be a bit over-engineered
| animal = args.animal.lower() | ||
|
|
||
| if not hasattr(cowsay, animal): | ||
| print(f"Invalid choice: '{args.animal}' (choose from: {', '.join(available_animals)})") |
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.
As you have specified the choices argument in, do you need to include this here as well? If you un with an invalid animal, you'll see some duplication of errors in the output
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.
Hi @LonMcGregor, i did see that but the example test case in README file % python3 cow.py --animal fish Turtles are cool too! showed the message as such. should i still edit this?
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.
I forgot the readme explicitly requested that. In that case, this implementation is good and complete. Well done.
Learners, PR Template
Self checklist
Changelist
Questions