PyCQA / isort

A Python utility / library to sort imports.
https://pycqa.github.io/isort/
MIT License
6.45k stars 574 forks source link

Add `--required-version` #2238

Open archont94 opened 6 months ago

archont94 commented 6 months ago

Adding functionality to verify (with CLI or config) if currently used isort version matches required version.

Similar to black implementation.

archont94 commented 6 months ago

@staticdev I fixed Unnecessary else / elif used after return PYL-R1705 but remaining error is related to main cyclomatic complexity higher than threshold and I'm not gonna touch it as it might mess with a lot of other things.

Please let me know how to proceed.