Skip to content

Hannah - #5

Open
hannahwn wants to merge 1 commit into
HackYourAssignment:mainfrom
hannahwn:week2-attempt
Open

hannahwn wants to merge 1 commit into
HackYourAssignment:mainfrom
hannahwn:week2-attempt

Conversation

@hannahwn

Copy link
Copy Markdown

No description provided.

@hannahwn hannahwn changed the title pipelines Hannah May 13, 2026
@qira-a

qira-a commented Jun 4, 2026 •

Copy link
Copy Markdown

Nice work, your pipeline produces the correct 12-row output, all 4 tests pass, and your Azure upload looks good. 4/5.

Comment thread task-1/src/config.py
Comment on lines +20 to +21
input_path = (os.environ["INPUT_PATH"])
output_path =(os.environ["OUTPUT_PATH"])

@qira-a qira-a Jun 4, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

These two lines load env vars before _required() runs, and they use os.environ["INPUT_PATH"] which raises KeyError (not ValueError) if missing.
You already have the correct solution on lines 43–44. Please delete lines 20–21 and 33–36, and keep only:

INPUT_PATH: str = _required("INPUT_PATH")
OUTPUT_PATH: str = _required("OUTPUT_PATH")

@qira-a

qira-a commented Jun 4, 2026

Copy link
Copy Markdown

Please remove __pycache__/ and .pyc files from this PR, they're auto-generated by Python and shouldn't be committed.

Comment thread task-1/src/pipeline.py
with open(path, mode='r', encoding='utf-8') as file:
reader = csv.DictReader(file)
return list(reader)
raise NotImplementedError

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

please remove

Comment thread task-1/src/models.py
vat: float = 0.0

def __post_init__(self):
if (self.price <= 0):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

the assignment says reject negative prices, kindly change to <0

Comment thread task-1/src/transforms.py
Comment on lines +40 to +41
{
**row, # ✅ spread pattern - copies all existing fields

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Put {**row, ...} on one line so the auto grader can work correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants