Skip to content

London | 26-Mar-SDC | Craig D'Silva | Sprint 4 | Implement Shell Tools Python#482

Open
craig-dsilva wants to merge 16 commits into
CodeYourFuture:mainfrom
craig-dsilva:implement-shell-tools-python
Open

London | 26-Mar-SDC | Craig D'Silva | Sprint 4 | Implement Shell Tools Python#482
craig-dsilva wants to merge 16 commits into
CodeYourFuture:mainfrom
craig-dsilva:implement-shell-tools-python

Conversation

@craig-dsilva
Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Implement shell tool with Python

@craig-dsilva craig-dsilva added 🦑 Size Large 4-8 hours 📅 Sprint 4 Assigned during Sprint 4 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Tools The name of the module. labels Apr 10, 2026
Copy link
Copy Markdown
Contributor

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good implementations, but I think that you could be a bit cleaner when writing some of your logic. Notably, your use of booleans in if statements. Can you take another look at this?

text_list = text.split("\n")
text_list.pop(len(text_list) - 1)

if (show_lines == False and non_blank == False):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are testing booleans, is there a better way of writing these if statements?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Tools The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 🦑 Size Large 4-8 hours 📅 Sprint 4 Assigned during Sprint 4 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants