Replies: 2 comments 2 replies
-
isort implemented here... causes circular imports currently... |
Beta Was this translation helpful? Give feedback.
2 replies
-
PR in #1211 without any tasks / automation / hooks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Enforcing code style is useful, but tools like Black and Ruff (by default) won't sort imports according to pep8 style. isort is powerful and maybe unsafe if there is some monkey patching going on, but these concerns should be addressable with the pyproject config. For example:
So should we start using isort in conjunction with black to force formatting of imports?
My main motivation is to make a tool automatically remove unused imports that sometimes happen when I'm developing and making heavy use of autocomplete, later removing that section of code. As well as to make sure autocomplete imports are being added in the correct location.
Beta Was this translation helpful? Give feedback.
All reactions