-
Notifications
You must be signed in to change notification settings - Fork 107
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
chore(fw): add docstrings to all opcodes in opcodes enum #424
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks amazing! Thanks for this. I added some minor comments before we can merge.
Thanks for reviewing! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really great, thanks a lot for adding this! π―
In general, tox
is really helpful to make sure no errors have crept in. The framework-specific checks (tox -e framework
) and the tests checks (tox -e tests
) caught the error in the PUSH opcode values (see below). Docs here: https://ethereum.github.io/execution-spec-tests/v2.1.0/writing_tests/verifying_changes/
You will probably come across all sort of whitespace / max-line-length errors when you try to run tox...
These could be either handled in your script, by wrapping the new docstring lines at the relevant column (99) or by using VS Code and plugins. In addition to the repo's VS Code setup you might need a plugin like https://stkb.github.io/Rewrap/ to help with bullet point formatting/line-wrapping.
If you feel it's worth getting VS code setup to handle these, see https://ethereum.github.io/execution-spec-tests/v2.1.0/getting_started/setup_vs_code/.
If not (or if your having other issues), feel free to ping me, and I'm happy to help with formatting to get this over the finish line! π
Thanks a lot for pointing out the problems @danceratopz !! β€οΈ |
50cddc9
to
20447e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more comments thanks!
I think you should be able to just batch-commit all the comments directly from here.
Co-authored-by: Mario Vega <[email protected]>
Thanks ! |
Hey @danceratopz I think we are unable to merge unless you approve the requested changes, if you'd like to give this another look π |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the hold up! Looking good, thank you once again!
I replaced the unnecessary UTF8 characters in 6864f5d (β
-> '
). Otherwise, a few fixes/suggestions below!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of acknowledgements.
Any thoughts @marioevz?
Co-authored-by: danceratopz <[email protected]>
Hey @marioevz, @spencer-tb's doing a last pass π and will give some more input sooon, but I've approved the requested changes to avoid blocking! |
I added some additional tweaks in: 035821f
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheeky approve after my commit π₯
Amazing. The most commented PR in the history of execution-spec-tests! Thanks again @ThreeHrSleep! |
ποΈ Description
Added docstrings to most of the opcodes in the Opcodes Enum.
Left
TSTORE
,TLOAD
,SENDALL
,RJUMPI
,RJUMPV
incomplete due to confusionπ Related Issues
#383
β Checklist
mkdocs serve
locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.