You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.
Using this plugin with a large existing codebase is a little difficult. We don't want to black the whole thing at once, since that would conflict with all the open pull requests and generally just be a big burden.
So we've been blacking the code a piece at a time, as/when appropriate.
It'd be helpful if there was a whitelist for the black_on_save setting, where we could put all the directories we've blacked already, so they continue to be automatically blacked without having to cmd+shift+p and toggle black on save all the time.
The text was updated successfully, but these errors were encountered:
Maybe I"m missing something, but I think you should tweak it with the include/exclude black option in a pyproject.toml or in the sublime project settings.
you exclude everything, and add blacked directory in include when you want it to be blacked
I suppose so. But black_on_save doesn't appear to respect include/exclude, it blacks on save if you tell it to and doesn't if you tell it not to. Is there a way to get it to respect include/exclude from the pyproject.toml?
I was telling myself I already heard anything about it. and indeed : psf/black#438
The default black behaviour is to not ignore a path file specified in command line. that's why sublack does too.
But it make sense for black_on_save to disable it, I will not change it for the standard black command.
Using this plugin with a large existing codebase is a little difficult. We don't want to black the whole thing at once, since that would conflict with all the open pull requests and generally just be a big burden.
So we've been blacking the code a piece at a time, as/when appropriate.
It'd be helpful if there was a whitelist for the
black_on_save
setting, where we could put all the directories we've blacked already, so they continue to be automatically blacked without having to cmd+shift+p andtoggle black on save
all the time.The text was updated successfully, but these errors were encountered: