Skip to content

Commit

Permalink
Merge pull request #1847 from PyCQA/pyflakes-3-1
Browse files Browse the repository at this point in the history
upgrade pyflakes to 3.1.x
  • Loading branch information
asottile committed Jul 29, 2023
2 parents b3cee18 + 5bd63bc commit 9744e5b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions docs/source/user/error-codes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ generates its own :term:`error code`\ s for ``pyflakes``:
+------+---------------------------------------------------------------------+
| F702 | a ``continue`` statement outside of a ``while`` or ``for`` loop |
+------+---------------------------------------------------------------------+
| F703 | a ``continue`` statement in a ``finally`` block in a loop |
+------+---------------------------------------------------------------------+
| F704 | a ``yield`` or ``yield from`` statement outside of a function |
+------+---------------------------------------------------------------------+
| F706 | a ``return`` statement outside of a function/method |
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ package_dir =
install_requires =
mccabe>=0.7.0,<0.8.0
pycodestyle>=2.10.0,<2.11.0
pyflakes>=3.0.0,<3.1.0
pyflakes>=3.1.0,<3.2.0
# 3.8.0's importlib.metadata is broken
python_requires = >=3.8.1

Expand Down
1 change: 0 additions & 1 deletion src/flake8/plugins/pyflakes.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"IfTuple": "F634",
"BreakOutsideLoop": "F701",
"ContinueOutsideLoop": "F702",
"ContinueInFinally": "F703",
"YieldOutsideFunction": "F704",
"ReturnOutsideFunction": "F706",
"DefaultExceptNotLast": "F707",
Expand Down

0 comments on commit 9744e5b

Please sign in to comment.