-
Notifications
You must be signed in to change notification settings - Fork 25
Formative feedback #10
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
Merging as gitbash shows an error of unrelated histories
| assert score > 7 | ||
| assert score > 9 | ||
|
|
||
| pytest |
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.
Don't commit random lines. use git diff to see what will be chnaged
| Input - a task to add to the list | ||
| Return - nothing | ||
| """ | ||
| with open (TASK_FILE, "a", encoding="utf-8") as file: |
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.
Avoid two functions in one commit. You may want to roll back add_task, but keep list_tasks. You can't do this easily with two functions in one commit.
| formatted_tasks.append(f"{index + 1}. {task}") | ||
| output_string += "".join(formatted_tasks) | ||
| print(output_string) | ||
| return output_string.rstrip('\n') |
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.
Might need a commetn above this for why the rstrip.
|
|
||
|
|
||
| def remove_task(index): | ||
|
|
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 above; don't add random line in a commit unless they are needed.
|
@RoryAlexander1 COmments on the formative above. |
Nice work; clear code and passes tests (with caveats).
What you did well:
What could be improved: