Skip to content

Hannah N - #8

Open
hannahwn wants to merge 3 commits into
HackYourAssignment:mainfrom
hannahwn:main
Open

hannahwn wants to merge 3 commits into
HackYourAssignment:mainfrom
hannahwn:main

Conversation

@hannahwn

@hannahwn hannahwn commented May 6, 2026

Copy link
Copy Markdown

No description provided.

hannahwn and others added 2 commits May 7, 2026 00:30
Co-authored-by: Copilot <copilot@github.com>
@github-actions

This comment has been minimized.

@qiraahmad

Copy link
Copy Markdown

task-1/src/pycache/utils.cpython-311.pyc and pycache/ should not be in git. You can edit the .gitignore to remove such files from committing.

Comment thread task-1/src/cleaner.py
import logging
from pathlib import Path

from utils import clean_department, clean_email, clean_name, clean_salary

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 undo this change as the grader runs this, and .utils does not work here as you're not importing a module from a package

Comment thread task-1/src/utils.py Outdated
import logging
from pathlib import Path

logging.basicConfig(level=logging.INFO)

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 keeps logging in cleaner.py. utils.py should stay simple helpers, so please remove logging setup from here and keep warnings only in clean_row in cleaner.py

Comment thread task-1/src/utils.py Outdated
raise NotImplementedError("Implement clean_name (Task 1)")
name = raw.strip()
if name == "":
logging.warning("skipping row with empty name")

@qiraahmad qiraahmad May 12, 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.

The message says "skipping row", but this function only returns "". Skipping is done in cleaner.py, so better to remove the log here

Comment thread task-1/src/utils.py Outdated
salary = raw.strip().replace(",", "").replace(".", "")
if salary in ("", "N/A"):
return None
return int(salary)

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 wrap this in try / except ValueError and return None if parsing fails, so one bad salary does not stop the whole script

@qiraahmad

Copy link
Copy Markdown

Can fully grade this after fixes are made to run the workflow successfully again

@github-actions

Copy link
Copy Markdown

📝 HackYourFuture auto grade

Assignment Score: 100 / 100 ✅

Status: ✅ Passed
Minimum score to pass: 60
🧪 The auto grade is experimental and still being improved

Test Details
Task 1 (Cleaner Pipeline): 60/60 — cleaner output and code structure both pass
Task 2 (AI Debug Report):  20/20 — AI_DEBUG.md is filled in
Task 3 (Azure Proof):       20/20 — azure_proof.png present
----------------------------------------
Total: 100/100 — pass=true (passing threshold: 60)

@qiraahmad

Copy link
Copy Markdown

I would grade this 75/100. For future reference, please switch skip/status messages back to logging.warning / logging.info (not print), and fix the %s lines so values actually show up. Keep utils.py free of logging; instead handle skip warnings in clean_row. And remove pycache from git.

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