build: upgrade isort for better black compatibility #325
Labels
Comments
|
Thanks! Feel free to open a PR |
KyleKing
added a commit
to KyleKing/commitizen
that referenced
this issue
Dec 31, 2020
KyleKing
added a commit
to KyleKing/commitizen
that referenced
this issue
Dec 31, 2020
KyleKing
added a commit
to KyleKing/commitizen
that referenced
this issue
Jan 1, 2021
KyleKing
added a commit
to KyleKing/commitizen
that referenced
this issue
Jan 1, 2021
Lee-W
added a commit
that referenced
this issue
Jan 2, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
isort 5.X introduced profiles to make it easier to keep isort and black consistent (isort and black). I noticed that there is an issue with isort now that the test script throws errors from isort for import order but not from black. isort wants the vertically indented imports to be on one line
I can submit a PR if desired unless there is a need to stay on isort
4.x. I documented the other migration changes necessary in "Desired behavior"Steps to reproduce / Current behavior
from
./scripts/test:poetry run isort --recursive --check-only commitizen testsoutputs:
Desired behavior
Testing with
Updating isort (4.3.21 -> 5.7.0)and the--recursiveand--applyflags removed (they are now the defaults - see the isort migration guide)and the simplified TOML file:
format and test work without issue
^ Also, there is a YAML error that could possibly also be ignored and updated, see: https://msg.pyyaml.org/load
The text was updated successfully, but these errors were encountered: