nbQA-dev / nbQA

Run ruff, isort, pyupgrade, mypy, pylint, flake8, and more on Jupyter Notebooks
https://nbqa.readthedocs.io/en/latest/index.html
MIT License
1.01k stars 39 forks source link

tests/tools/test_pylint_works.py fails as pylint 3.1.0 updated error messages #838

Closed funkeleinhorn closed 5 months ago

funkeleinhorn commented 6 months ago

pylint 3.1.0 updated the message for wrong-import-order:

The message will report imports as follows:
For "import X", it will report "(standard/third party/first party/local) import X"
For "import X.Y" and "from X import Y", it will report "(standard/third party/first party/local) import X.Y"

this caused the tests/tools/test_pylint_works.py test to fail with the current pylint version. The messages in the test should be updated accordingly.