-
Notifications
You must be signed in to change notification settings - Fork 239
Add support for pyflakes 3.1 #412
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for issues without a type.
pyflakes 3.1.0 was released a few days ago with Python 3.12 support and various other fixes/improvements [1]. Could you consider bumping version constraints for pyflakes [2]?
I tried removing the upper bound for pyflakes and use it with the latest pyflakes, but no warnings/errors are reported. I guess the issue is that
ContinueInFinallyis dropped from pyflakes [3], while python-lsp-server still tries to use it [4]. If I removed the line at [4], pyflakes 3.1 works fine with python-lsp-server.[1] https://github.com/PyCQA/pyflakes/blob/3.1.0/NEWS.rst
[2] https://github.com/python-lsp/python-lsp-server/blob/v1.7.4/pyproject.toml#L35
[3] PyCQA/pyflakes#752
[4] https://github.com/python-lsp/python-lsp-server/blob/v1.7.4/pylsp/plugins/pyflakes_lint.py#L18