Replies: 3 comments 4 replies
-
That is why I use isort + flake8, they work better together and I think flake8 is a bit superior these days IMHO. In any case I don't consider this an issue so I moved it to discussions. You can see an example python library I use isort working together with a ton of linters: https://github.com/staticdev/human-readable/ |
Beta Was this translation helpful? Give feedback.
-
I'm actually using both flake8 and pylint. They don't seem to disagree with each other. pylint just seems a lot pickier. There are really two issues here:
Sounds like you don't care about 1. What about 2? If you don't care about that either, that is your prerogative. But, I probably won't use isort until it's okay with 1 and 2. Or, maybe I'll drop pylint and keep flake8, we'll see. Best wishes. |
Beta Was this translation helpful? Give feedback.
-
Hi there, You could solve that disagreement by configuring isort to consider Do you have https://pycqa.github.io/isort/docs/configuration/options.html#src-paths Or if you need more flexibility you also have the https://pycqa.github.io/isort/docs/configuration/options.html#known-first-party I hope this helps, |
Beta Was this translation helpful? Give feedback.
-
I put both isort (5.10.1) and pylint (2.13.4) into my pre-commit script. They disagree:
When I move the third-party gtts above a_file, isort puts it back and annoys pylint.
So, sadly, I've disabled isort.
Best wishes.
Beta Was this translation helpful? Give feedback.
All reactions