Category "python-black"

Nesting long lists and sets using black formatter

Can the python black formatter nest long lists and sets? For example: Input coworkers = {"amy", "bill", "raj", "satoshi", "jim", "lifeng", "jeff", "sandeep", "m

black as pre-commit hook always fails my commits

I'm trying to use pre-commit to manage Black as a Git pre-commit hook, but I must be doing it wrong. In my pre-commit config file I have: - repo: https://gith

Python: Black doesn't wrap long lines

I am using black==20.8b1. I have a long string like: return f"{self.name}, a {adjective.to_name()} {kin_string}{self._type.to_name()} who works for the {target.