Closed martinburchell closed 2 years ago
I've diffed with temporary-black-branch
, which has just the reformatting to see the PEP8 and tool changes following the reformat and I think it looks OK. The thing I'm most concerned about is accidentally turning a string into a tuple by changing"very long string"
into ("very long string",)
instead of ("very long string")
.
There's a bit of an iterative workflow should the specimen python config files change. We need to format them as Black would inside the comment block, run the generate docs script and then run black --line-length 79 --diff
on the generated python files to check we haven't missed anything.
@RudolfCardinal I don't think you really want to review 240 changed files so I'm going to just merge this and hope nothing is broken. The most likely breakages are going to be where I've chopped up strings not to exceed 80 characters.
A couple of things to note:
black --line-length 79 --exclude working <project dir>
. If you add--diff --check
it just reports what needs changing and returns non-zero status code# noqa: E501
)Fixes #76