marimo lint for best practices.
#4332
dmadisetti
started this conversation in
General
Replies: 2 comments 1 reply
-
|
for sure ! happy to help and dogfood anything as well ! @dmadisetti |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Our comprehensive list of rules can be found here: https://docs.marimo.io/guides/lint_rules/#formatting-rules The API to contribute should be pretty straightforward (https://github.com/marimo-team/marimo/blob/main/development_docs/adding_lint_rules.md) and we are welcome to additions and PRs. Feel free to create a new issue with the rules you would like to see! cc: @bossjones |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a running list of
lintideas in no particular order, an id is only provided to facilitate discussion. Feel free to chime if you have ideas (thanks @bossjones for sharing your rules):importonly cellsimport-onlycells are handled in such a way that new imports do not rerun the entire notebook@app.function,@app.class_definition)__setattr__,__setitem__, and__i*__on an object should be avoidedRelevant issue: #1543
Some goals:
If there is synergy between a python best-practice, and a marimo best-practice, then prefer changing marimo to better align with the python practice.
Some previous examples of this are
__to_, such that linters recognized the cell function do not require a name;Linter hints should not be stylistically paternalistic, but have a clear performance or clarity improvement specific to marimo
Under this criteria
Beta Was this translation helpful? Give feedback.
All reactions