Skip to content

Check for None in IsFunctionCall#552

Open
MFelida wants to merge 1 commit into42school:masterfrom
MFelida:hangs_on_macro_function
Open

Check for None in IsFunctionCall#552
MFelida wants to merge 1 commit into42school:masterfrom
MFelida:hangs_on_macro_function

Conversation

@MFelida
Copy link
Copy Markdown
Contributor

@MFelida MFelida commented Apr 13, 2025

Issues Fixed

Verification Steps

  • Added new tests to cover the changes.
  • Fixed all broken tests.
  • Ran poetry run flake8 to check for linting issues.
  • Verified that all unit tests are passing:
    • Ran poetry run pytest to ensure unit tests pass.
    • Ran poetry run tox to validate compatibility across Python versions.

Additional Notes

Macro functions aren't allowed in the norm and every other function needs to be followed by semicolon, so I think it's fine to just error out of norminette when semicolon isn't found. Hitting an exception is better than hanging at the very least.

@Asandolo Asandolo force-pushed the hangs_on_macro_function branch from 6194b1b to 063469a Compare June 6, 2025 12:28
Copy link
Copy Markdown
Collaborator

@Asandolo Asandolo left a comment

Choose a reason for hiding this comment

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

Hello can you add test for you changes please

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.

Norminette hangs on macro function not followed by semicolon

2 participants