Open 1oglop1 opened 2 years ago
I wonder if it's related to #1839 as well.
Here is another problem, what if I want to disable isort and black.
from dj_rest_auth.views import ( #isort: skip
LoginView,
LogoutView, # hey, I like it this way :p
) # fmt: skip
The fmt: skip
is moved up and that breaks black.
I'm also wondering if it's possible to leave comments on the line on which they are written. If I want to comment my imports (like I do above) and I'm using black
profile, then it makes sense to allow it. But I assume this is very difficult to implement?
This is driving me nuts 🤣 . Has anyone found a solution?
Hi, this issue seems to be related to #1009 #1843.
When using
isort
as a pre-commit hook withblack
profile. My commented imports are being moved to a single line.Commented imports are intentional because I have some work in progress but I'd still like to commit (without
--no-verify
)Example: Before:
After:
My pre-commit hook configuration: