-
Notifications
You must be signed in to change notification settings - Fork 812
lint rule: check for branching expressions #7287
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
mscolnick
left a comment
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.
nice rule!
|
it seems like there are a few false-positives. maybe we can special case |
This is a good diea |
| @@ -0,0 +1,64 @@ | |||
| import marimo | |||
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.
it might be worth capturing a valid use-cases as well in here:
- mo.output
- mo.stop
- sys.*
mscolnick
left a comment
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.
nice!
📝 Summary
Adds common genai mistake where the last expression is expected to conditionally show if nested in an expression. Example: