I'm working on a project that has this in the pyproject.toml:
[tool.black]
line-length = 100
black says that nothing needs to be reformatted:
$ black --check .
All done! ✨ 🍰 ✨
177 files would be left unchanged.
But when I have blacken-mode running, lines longer than 100 are reformatted on save. I have to set blacken-line-length to 100 to get the desired behavior. Why doesn't black use the configured line length when it's run through blacken-mode?
If it makes a difference, this is over TRAMP.
I'm working on a project that has this in the
pyproject.toml:blacksays that nothing needs to be reformatted:But when I have
blacken-moderunning, lines longer than 100 are reformatted on save. I have to setblacken-line-lengthto 100 to get the desired behavior. Why doesn'tblackuse the configured line length when it's run throughblacken-mode?If it makes a difference, this is over TRAMP.