-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support for extend-exclude #42
Comments
Actually, I think maybe the option that needs to be supported is |
Adding this feature requires changing quite a lot of code. If you are interested in submitting a pull request, it may get done faster. Otherwise it may take many days to complete in my spare time. |
Ok, thanks for responding. We ended up just deciding to not exclude files from black at all and changed our toml. The main issue was trying to exclude files that were auto-generated (like django migration files) because most are never edited and so would never trigger black in Sublime. But if they are ever edited and then formatted by black, they generate large diffs that are then hard to separate real changes from formatting changes. We solved it by using precommit to just force formatting on all new files. Still, perhaps this feature would be useful to others. I saw the commit you just added yesterday. If you are going to add this feature, I'd add |
I was trying to use this plugin, but it seems like the
extend-exclude
option in a pyproject.toml file is not honored. When I run black from the command line, it is honored, so it seems like it's just that the plugin doesn't handle the option? Any chance that could be added?The text was updated successfully, but these errors were encountered: