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
Add option to only blacken if the project uses black
* only blacken on save if the project uses black
To make it easier to use blacken across multiple projects, some of which
are *not* using black, add the following changes to blacken.el:
1. `blacken.el` now searches for a `pyproject.toml` file in parent
directories of the current buffer.
2. If it finds such a file, it checks whether there is a `[tool.black]`
section in it, and it only blackens on save if there is.
This allows me to auto-blacken my Python code for projects that use
black, but to avoid code churn in projects that do not.
* make blacken-only-if-project-is-blackened an option
0 commit comments