The docs for the Black Python code formatter say that the formatter "is not configurable". This is largely true, but if you have Black set up to wo...
For further actions, you may consider blocking this person and/or reporting abuse
I'm setting the arguments via
pyproject.tomland had the problem, that the line-length was not reformatted properly.After a while, I found out that I have to restart the format server!
If you have the same problem...simply do this:
'Ctrl + Shift + P' -> '> Black Formatter: Restart Server'
Thank you!!!
fyi, can also add this to your .vscode folder > settings.json
Definitely going to reference this very time I start a new project -- right after I re-learn that setting max line length in
.pylintrcis not a substitute for the setting Adam's proposed here. Thanks Adam!You're welcome, Jordan! π
119 seems uncomfortable! Then again I have never done Django and might be missing some context here.
I generally stick to black defaults and change my flake8 config to match.
Yeah, 119 is a little wide. Apparently it's the max char width for GitHub code review, which is why the Django project uses it as a max line length.
Thank you this helps!
You're welcome!