Skip to content

Commit

Permalink
Add support for pyflakes 3.1
Browse files Browse the repository at this point in the history
`ContinueInFinally` is dropped in pyflakes 3.1 [1].

flake8 is bumped to a version that supports pyflakes 3.1 [2].

pyflakes is also bumped to have the same version range as flake8 [2]
(thanks ccordoba12 for the notice).

Closes #412

[1] PyCQA/pyflakes#752
[2] https://flake8.pycqa.org/en/latest/release-notes/6.1.0.html

Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
  • Loading branch information
yan12125 and ccordoba12 committed Aug 15, 2023
1 parent 15e2447 commit 36993c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion pylsp/plugins/pyflakes_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
messages.YieldOutsideFunction,
messages.ContinueOutsideLoop,
messages.BreakOutsideLoop,
messages.ContinueInFinally,
messages.TwoStarredExpressions,
)

Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ Homepage = "https://github.com/python-lsp/python-lsp-server"
[project.optional-dependencies]
all = [
"autopep8>=1.6.0,<2.1.0",
"flake8>=5.0.0,<7",
"flake8>=6.1.0,<7",
"mccabe>=0.7.0,<0.8.0",
"pycodestyle>=2.9.0,<2.11.0",
"pycodestyle>=2.11.0,<2.12.0",
"pydocstyle>=6.3.0,<6.4.0",
"pyflakes>=2.5.0,<3.1.0",
"pyflakes>=3.1.0,<3.2.0",
"pylint>=2.5.0,<3",
"rope>1.2.0",
"yapf>=0.33.0",
"whatthepatch>=1.0.2,<2.0.0"
]
autopep8 = ["autopep8>=1.6.0,<2.1.0"]
flake8 = ["flake8>=5.0.0,<7"]
flake8 = ["flake8>=6.1.0,<7"]
mccabe = ["mccabe>=0.7.0,<0.8.0"]
pycodestyle = ["pycodestyle>=2.9.0,<2.11.0"]
pycodestyle = ["pycodestyle>=2.11.0,<2.12.0"]
pydocstyle = ["pydocstyle>=6.3.0,<6.4.0"]
pyflakes = ["pyflakes>=2.5.0,<3.1.0"]
pyflakes = ["pyflakes>=3.1.0,<3.2.0"]
pylint = ["pylint>=2.5.0,<3"]
rope = ["rope>1.2.0"]
yapf = ["yapf>=0.33.0", "whatthepatch>=1.0.2,<2.0.0"]
Expand Down

0 comments on commit 36993c8

Please sign in to comment.