Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(fo): upgrade FO parser to use event classes #6727

Conversation

amv213
Copy link
Contributor

@amv213 amv213 commented May 6, 2024

Issue

#6011

Description

This PR upgrades the FO parser to use event classes, and adds tests to catch regressions.

Double check

  • I have tested my parser changes locally with poetry run test_parser "zone_key"
  • I have run pnpx prettier@2 --write . and poetry run format in the top level directory to format my changes.

@amv213 amv213 requested a review from VIKTORVAV99 as a code owner May 6, 2024 07:58
@github-actions github-actions bot added parser python Pull requests that update Python code tests labels May 6, 2024
Copy link
Member

@VIKTORVAV99 VIKTORVAV99 left a comment

Choose a reason for hiding this comment

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

Just some small notes. But looks good!

parsers/FO.py Outdated Show resolved Hide resolved
parsers/FO.py Outdated Show resolved Hide resolved
@VIKTORVAV99
Copy link
Member

Will do a final review in just a bit.

Copy link
Member

@VIKTORVAV99 VIKTORVAV99 left a comment

Choose a reason for hiding this comment

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

LGTM!

(There is one tiny thing but I'll aprove anyway and just let you fix it or commit the change myself before the next release)

parsers/FO.py Outdated Show resolved Hide resolved
amv213 and others added 2 commits May 14, 2024 15:22
@VIKTORVAV99 VIKTORVAV99 enabled auto-merge (squash) May 14, 2024 14:24
@VIKTORVAV99 VIKTORVAV99 merged commit bed8fe2 into electricitymaps:master May 14, 2024
19 checks passed
@amv213 amv213 deleted the amv213/upgrade-fo-parser-with-event-classes branch May 14, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser python Pull requests that update Python code tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants