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

Turn off parse error warnings? #226

Closed
mseflek opened this issue Aug 24, 2021 · 3 comments
Closed

Turn off parse error warnings? #226

mseflek opened this issue Aug 24, 2021 · 3 comments

Comments

@mseflek
Copy link

mseflek commented Aug 24, 2021

Hi, I may have missed this so apologies if I this is in the docs, but is there a way to turn off the code formatter errors, in particular the parse errors? I have format on save turned on, and sometimes I have stray draft cells that I've written junk code in, and each time it auto saves it complains about formatting errors.

E.g. (I just made this up to trigger the error):
image

Thanks!

@ryantam626
Copy link
Owner

Sorry for the late reply, was extremely burnt out and just switched off.

Thanks for the suggestion! I will have a think how to do this cleanly and try to do it in the coming days.

@ryantam626
Copy link
Owner

ryantam626 commented May 1, 2022

This is now supported in 1.4.11 🎉
Example config to enable this:

{
   "formatOnSave":true,
   "suppressFormatterErrors":true,
   "preferences":{
      "default_formatter":{
         "python":[
            "black"
         ],
         "r":"noop"
      }
   }
}

Thanks again for the suggestion 🙏

@mseflek
Copy link
Author

mseflek commented May 1, 2022

Awesome! Thanks a ton!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants