Skip to content

Commit

Permalink
Support Black 20
Browse files Browse the repository at this point in the history
Use the option --target-version insteead --py36, which was removed
in Black 20.8b0.

The option --target-version was added in Black 19.3b0, so blacken now
requires at least this version of Black.

See psf/black#1236
  • Loading branch information
jakubvalenta authored and dakra committed Apr 5, 2021
1 parent 784da60 commit 69d8012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blacken.el
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Return black process the exit code."
('fill fill-column)
(t blacken-line-length)))))
(when blacken-allow-py36
(list "--py36"))
(list "--target-version" "py36"))
(when blacken-fast-unsafe
(list "--fast"))
(when blacken-skip-string-normalization
Expand Down

0 comments on commit 69d8012

Please sign in to comment.