New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce isort linting and apply it #169
base: main
Are you sure you want to change the base?
Conversation
A few remarks:
Also I now remember why we ended up not applying |
isort and black are compatible, given you configure isort correctly. @patricklabatut you are still seeing them conflict even in that case? Also would strongly recommend adopting the |
I am definitely not saying the tools are not compatible, just that we did not spend enough time to figure this out if they are. If you can figure out settings that do not alternate changes applied by the two tools, I will gladly approve. |
Gotcha. Yeah that's a two-liner in [tool.isort]
profile = "black" cc @leo-gan |
Finding a "fixed point" for the sequence of linters was unfortunately a bit more complicated than just using the "black" profile of
|
Where is If the |
That's a configuration file I just created locally to test again this problem of alternating changes. It's not (yet) in the repository.
I won't jump yet to the conclusion that the integration is broken. For instance, we do specify a different maximum line length for
|
Yeah, I'm actually using |
Note of sanity: |
327a9cf
to
6d3d822
Compare
@patricklabatut Any comments? |
I believe the feedback from previous comments [1] [2] still need to be integrated, thanks. |
Sorted imports by 1.
isort
; 2.black
(order is important)