-
Notifications
You must be signed in to change notification settings - Fork 427
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
Cell formatting doesn't respect dependencieslocals_without_parens
#1212
Comments
I think this is hard because we would need to list somewhere the dependencies we want to include on the formatting. @jonatanklosko who does the formatting? Livebook or the runtime? If Livebook, then it is not possible at all and we should close this as not possible. :( |
@josevalim it's the runtime, is there an easy way for us to get all dependency formatting rules, without specifying them explicitly? |
It seems currently this is done in the |
Unfortunately it's not trivial, when using |
We're using Livebook for things like Ash tutorials, and for I wouldn't mind if special config needs to be set in the setup to make this work, like |
@josevalim perhaps if we made |
@zachdaniel we decided to disable formatting on-save altogether (#2605). |
Environment
git rev-parse HEAD
if running with mix): 0.6.1Current behavior
Adding ecto and input the following query:
Run the formatter:
It added parentheses despite
locals_without_parens
.Expected behavior
Do not add parentheses for macros specified in
locals_without_parens
.I'm happy to have a look and try to open a PR if this is something we want to address.
The text was updated successfully, but these errors were encountered: