black v20.8.b0 Release Notes

Release Date: 2020-08-26 // over 3 years ago
  • Black

    • ๐Ÿ‘ re-implemented support for explicit trailing commas: now it works consistently within any bracket pair, including nested structures (#1288 and duplicates)

    • ๐Ÿ“„ Black now reindents docstrings when reindenting code around it (#1053)

    • Black now shows colored diffs (#1266)

    • ๐Ÿ“ฆ Black is now packaged using 'py3' tagged wheels (#1388)

    • ๐Ÿ‘ Black now supports Python 3.8 code, e.g. star expressions in return statements (#1121)

    • ๐Ÿ›  Black no longer normalizes capital R-string prefixes as those have a community-accepted meaning (#1244)

    • ๐Ÿ”ง Black now uses exit code 2 when specified configuration file doesn't exit (#1361)

    • Black now works on AWS Lambda (#1141)

    • โž• added --force-exclude argument (#1032)

    • โœ‚ removed deprecated --py36 option (#1236)

    • ๐Ÿ›  fixed --diff output when EOF is encountered (#526)

    • ๐Ÿ›  fixed # fmt: off handling around decorators (#560)

    • ๐Ÿ›  fixed unstable formatting with some # type: ignore comments (#1113)

    • ๐Ÿ›  fixed invalid removal on organizing brackets followed by indexing (#1575)

    • ๐Ÿ‘ท introduced black-primer, a CI tool that allows us to run regression tests against existing open source users of Black (#1402)

    • โœ… introduced property-based fuzzing to our test suite based on Hypothesis and Hypothersmith (#1566)

    • 0๏ธโƒฃ implemented experimental and disabled by default long string rewrapping (#1132), hidden under a --experimental-string-processing flag while it's being worked on; this is an undocumented and unsupported feature, you lose Internet points for depending on it (#1609)

    ๐Ÿ”Œ Vim plugin

    • ๐Ÿ“ฆ prefer virtualenv packages over global packages (#1383)