Skip to content

NW | 26-SDC-Mar | TzeMing Ho | Sprint 4 | implement-shell-tools-in-python#459

Open
TzeMingHo wants to merge 11 commits into
CodeYourFuture:mainfrom
TzeMingHo:coursework/implement-shell-tools-in-python
Open

NW | 26-SDC-Mar | TzeMing Ho | Sprint 4 | implement-shell-tools-in-python#459
TzeMingHo wants to merge 11 commits into
CodeYourFuture:mainfrom
TzeMingHo:coursework/implement-shell-tools-in-python

Conversation

@TzeMingHo
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

I have implemented custom shell tools in Python.

@TzeMingHo TzeMingHo added 📅 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. labels Apr 2, 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 start on these tasks, I've left some comments where you could maybe improve further

Comment thread implement-shell-tools/cat/custom_cat.py Outdated
for line in context:
if (args.non_blank):
if (len(line) != 0):
print(f'{str(count).rjust(6, " ")} {line}')
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.

This pattern is duplicated, could you reduce that?

Comment thread implement-shell-tools/ls/custom_ls.py Outdated
def sort_list(file_list):
return sorted(file_list, key=lambda file_name: re.sub(r"^\.", "", file_name).lower())

def format_list(file_list):
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.

Good idea to split off some helper functions

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

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 4 Assigned during Sprint 4 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants