-
-
Notifications
You must be signed in to change notification settings - Fork 42
Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 4 | Implement cowsay in Python #273
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?
Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 4 | Implement cowsay in Python #273
Conversation
|
I think you have 2PRs here. Could you close one and let me know which one you want reviewed? |
|
@LonMcGregor, sorry for the confusion. I’ve closed the other PR to avoid confusion and ensure all feedback is focused on this one. This is the PR I would like you to review. Thank you! |
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 start on this task, I've left some pointers
| @@ -1 +1,2 @@ | |||
| node_modules | |||
| .venv | |||
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.
Correct, you want to exclude the .venv directory. But what about the things you are installing into the .venv. Is there enough comitted here for me to be able to re-create your venv on my machine? which file is missing?
| text = " ".join(args.message) | ||
| animal = args.animal | ||
|
|
||
| supported_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.
Part of the task spec is finding a way to write this without you having to declare this array yourself. can you figure out how to get the animals directly from the library?
Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 4 | Implement cowsay in Python
Learners, PR Template
Self checklist
Changelist
Mimics the basic behavior of the cowsay command line tool in Python.
Supports a message input and optional --animal selection.
Shows an error for unsupported animals, similar to the official CLI.
Questions
The implementation currently mimics the official cowsay CLI by showing an error when an unsupported animal is provided, using a hardcoded list of animals. Is this approach acceptable, or would you recommend a different method for handling unsupported animals? Thank you!