Skip to content

Releases: google/pyink

24.3.0

21 Mar 18:36
Compare
Choose a tag to compare

This release is based on Black v24.3.0.

  • Remove the previously deprecated CLI option --pyink-lines. This was replaced by --line-ranges.

23.12.1

18 Jan 20:57
Compare
Choose a tag to compare

This release is based on Black v23.12.1.

  • The CLI option --pyink-lines is now deprecated and replaced by Black's built-in option --line-ranges.
  • Handle more trailing pragma cases so they are ignored for line-length calculation.

23.10.0

24 Oct 17:23
Compare
Choose a tag to compare

This release is based on Black v23.10.0.

23.9.1

17 Oct 22:42
Compare
Choose a tag to compare

This release is based on Black v23.9.1.

  • Black v23.9.9's new concise formatting for dummy implementations from psf/black#3796 is temporarily disabled for Pyink.

23.5.0

19 May 21:52
Compare
Choose a tag to compare
  • Existing parentheses around strings are no longer removed if the content does not fit on a single line. This is related to psf#3640 where we still want to keep the parentheses around the implicitly concatenated strings if the code already uses them, making it more obvious it's a single function argument.
  • --pyink-lines= now works with stdin inputs (#16).
  • Fixed compatibility issue on Python 3.7 (#13).

23.3.1

04 Apr 18:56
Compare
Choose a tag to compare
  • In multiline module docstrings, trailing quotes that are put on their own line are now kept on their own line. (#8)

23.3.0

31 Mar 18:50
941802b
Compare
Choose a tag to compare

This release is based on Black v23.3.0.

  • Pyink now requires Black v23.3.0 (for blib2to3).

23.1.1

07 Mar 01:44
Compare
Choose a tag to compare

This release is based on psf@9c8464c.

  • Fixed a bug where a module docstring ends with a line that's LineLength-3 to LineLength long, an extra empty line was added.
  • Fixed a bug when running Pyink on Python 3.8 and earlier (#3).
  • Do not explode immediately nested literals that have a trailing comma in the body.

23.1.0

08 Feb 19:04
Compare
Choose a tag to compare

This release is based on Black v23.1.0.

  • Temporarily disabled the following Black future style changes:
  • Fixed a bug in incremental formatting (--pyink_lines=) where pairs of # fmt: off/on are used outside of the line ranges.
  • Fixed a bug in incremental formatting (--pyink_lines=) when part of the match statement is changed.

22.12.0

13 Dec 21:00
Compare
Choose a tag to compare

This release is based on psf@96e62c5 (two bugfix commits ahead of Black v22.12.0).

Other changes:

  • Prefer splitting right hand side of assignment statements (see psf#1498, this is being upstreamed in psf#3368).