Closed rushiagr closed 6 months ago
OK looks like the issue is with (trailing) whitespaces. I removed trailing whitespaces from the code, and black was able to format. Providing before (buggy) and after (black works):
Before: https://gist.github.com/rushiagr/78b01515286ee86696e3209970b73a3c
After: https://gist.github.com/rushiagr/437fef5046a4436673813e4cd6e8c992
I just redacted s3 bucket name to 'mys3bucket', else the code snippet was lifted as-is
Thanks, I don't quite follow your example, but I believe it should be fixed in Black 24.4.0 and newer (by https://github.com/psf/black/pull/4290). Please re-open if not!
Describe the bug
For a particular string in my source, it is not able to format.
To Reproduce Please see below output produced by black
Error message:
Expected behavior
Black should be able to reformat file Environment
Additional context
Apologies as I'm not able to search duplicates in issue tracker, as i'm not well-versed with black and the bugs here..