I thought using the --preview flag would make the future transition from black 23.X to 24.X smoother, but unfortunately it is not as stable as I imagined. There is no guarantee that the result of running the linter with this flag will not change on minor upgrade, as we just saw with black 23.7.0 reverting a rule for string formatting (https://github.com/psf/black/pull/3640).
The result in this diff was obtained in two steps:
- adopt the latest expected future style for multiline concatatenated strings, by first running arc lint --everything after upgrading black to 23.7.0
- remove the --preview flag from .arclint, and rerun arc lint --everything
The second step does not revert the first one because manually splitting long strings over multiple lines is already compatible with black 23.X (it just won't do it automatically for you).