Skip to content

Commit b9e0c6e

Browse files
committed
upgrade pyflakes to 2.5.x
1 parent e406f30 commit b9e0c6e

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

docs/source/user/configuration.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ look at a portion of a project's Flake8 configuration in their ``tox.ini``:
180180
181181
[flake8]
182182
# it's not a bug that we aren't using all of hacking, ignore:
183-
# F812: list comprehension redefines ...
184183
# H101: Use TODO(NAME)
185184
# H202: assertRaises Exception too broad
186185
# H233: Python 3.x incompatible use of print operator
@@ -191,7 +190,7 @@ look at a portion of a project's Flake8 configuration in their ``tox.ini``:
191190
# H404: multi line docstring should start without a leading new line
192191
# H405: multi line docstring summary not separated with an empty line
193192
# H501: Do not use self.__dict__ for string formatting
194-
ignore = F812,H101,H202,H233,H301,H306,H401,H403,H404,H405,H501
193+
ignore = H101,H202,H233,H301,H306,H401,H403,H404,H405,H501
195194
196195
They use the comments to describe the check but they could also write this as:
197196

@@ -200,8 +199,6 @@ They use the comments to describe the check but they could also write this as:
200199
[flake8]
201200
# it's not a bug that we aren't using all of hacking
202201
ignore =
203-
# F812: list comprehension redefines ...
204-
F812,
205202
# H101: Use TODO(NAME)
206203
H101,
207204
# H202: assertRaises Exception too broad

docs/source/user/error-codes.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ generates its own :term:`error code`\ s for ``pyflakes``:
8585
+------+---------------------------------------------------------------------+
8686
| F704 | a ``yield`` or ``yield from`` statement outside of a function |
8787
+------+---------------------------------------------------------------------+
88-
| F705 | a ``return`` statement with arguments inside a generator |
89-
+------+---------------------------------------------------------------------+
9088
| F706 | a ``return`` statement outside of a function/method |
9189
+------+---------------------------------------------------------------------+
9290
| F707 | an ``except:`` block as not the last exception handler |

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ package_dir =
4141
install_requires =
4242
mccabe>=0.7.0,<0.8.0
4343
pycodestyle>=2.8.0,<2.9.0
44-
pyflakes>=2.4.0,<2.5.0
44+
pyflakes>=2.5.0,<2.6.0
4545
importlib-metadata<4.3;python_version<"3.8"
4646
python_requires = >=3.6.1
4747

src/flake8/plugins/pyflakes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,12 @@
4949
"ContinueOutsideLoop": "F702",
5050
"ContinueInFinally": "F703",
5151
"YieldOutsideFunction": "F704",
52-
"ReturnWithArgsInsideGenerator": "F705",
5352
"ReturnOutsideFunction": "F706",
5453
"DefaultExceptNotLast": "F707",
5554
"DoctestSyntaxError": "F721",
5655
"ForwardAnnotationSyntaxError": "F722",
5756
"CommentAnnotationSyntaxError": "F723",
5857
"RedefinedWhileUnused": "F811",
59-
"RedefinedInListComp": "F812",
6058
"UndefinedName": "F821",
6159
"UndefinedExport": "F822",
6260
"UndefinedLocal": "F823",

0 commit comments

Comments
 (0)