mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
Update to pyflakes 2.0.0
- Add new pyflakes codes - Bump the required versions - Fixes https://gitlab.com/pycqa/flake8/issues/422
This commit is contained in:
parent
33e7eae53a
commit
527af5c214
4 changed files with 10 additions and 2 deletions
|
|
@ -54,6 +54,9 @@ generates its own :term:`error code`\ s for ``pyflakes``:
|
|||
+------+---------------------------------------------------------------------+
|
||||
| F707 | an ``except:`` block as not the last exception handler |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F721 | doctest syntax error |
|
||||
| F722 | syntax error in forward type annotation |
|
||||
+------+---------------------------------------------------------------------+
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F811 | redefinition of unused ``name`` from line ``N`` |
|
||||
+------+---------------------------------------------------------------------+
|
||||
|
|
@ -69,6 +72,9 @@ generates its own :term:`error code`\ s for ``pyflakes``:
|
|||
+------+---------------------------------------------------------------------+
|
||||
| F841 | local variable ``name`` is assigned to but never used |
|
||||
+------+---------------------------------------------------------------------+
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F901 | ``raise NotImplemented`` should be ``raise NotImplementedError`` |
|
||||
+------+---------------------------------------------------------------------+
|
||||
|
||||
Note that some of these entries behave differently on Python 2 and Python 3,
|
||||
for example F812 is specific to Python 2 only.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue