mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 12:16:53 +00:00
Support pyflakes 2.2.x
This commit is contained in:
parent
1be8707dc7
commit
76eeccad89
3 changed files with 51 additions and 2 deletions
|
|
@ -29,6 +29,37 @@ generates its own :term:`error code`\ s for ``pyflakes``:
|
|||
| F407 | an undefined ``__future__`` feature name was imported |
|
||||
+------+---------------------------------------------------------------------+
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F501 | invalid ``%`` format literal |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F502 | ``%`` format expected mapping but got sequence |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F503 | ``%`` format expected sequence but got mapping |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F504 | ``%`` format unused named arguments |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F505 | ``%`` format missing named arguments |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F506 | ``%`` format mixed positional and named arguments |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F507 | ``%`` format mismatch of placeholder and argument count |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F508 | ``%`` format with ``*`` specifier requires a sequence |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F509 | ``%`` format with unsupported format character |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F521 | ``.format(...)`` invalid format string |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F522 | ``.format(...)`` unused named arguments |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F523 | ``.format(...)`` unused positional arguments |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F524 | ``.format(...)`` missing argument |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F525 | ``.format(...)`` mixing automatic and manual numbering |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F541 | f-string without any placeholders |
|
||||
+------+---------------------------------------------------------------------+
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F601 | dictionary key ``name`` repeated with different values |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F602 | dictionary key variable ``name`` repeated with different values |
|
||||
|
|
@ -37,12 +68,14 @@ generates its own :term:`error code`\ s for ``pyflakes``:
|
|||
+------+---------------------------------------------------------------------+
|
||||
| F622 | two or more starred expressions in an assignment ``(a, *b, *c = d)``|
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F631 | assertion test is a tuple, which are always ``True`` |
|
||||
| F631 | assertion test is a tuple, which is always ``True`` |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F632 | use ``==/!=`` to compare ``str``, ``bytes``, and ``int`` literals |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F633 | use of ``>>`` is invalid with ``print`` function |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F634 | if test is a tuple, which is always ``True`` |
|
||||
+------+---------------------------------------------------------------------+
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F701 | a ``break`` statement outside of a ``while`` or ``for`` loop |
|
||||
+------+---------------------------------------------------------------------+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue