diff options
| author | Anthony Sottile <asottile@umich.edu> | 2020-04-10 18:53:10 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2020-04-11 15:00:52 -0700 |
| commit | 76eeccad89ac83d7049ec7ebb10776609f7a103d (patch) | |
| tree | f6e3ab82df443a813dddd8a0891b4c3e0d63fa0e /docs/source/user | |
| parent | 1be8707dc71dbaed8e0b2cb72bfe83a604183a92 (diff) | |
| download | flake8-76eeccad89ac83d7049ec7ebb10776609f7a103d.tar.gz | |
Support pyflakes 2.2.x
Diffstat (limited to 'docs/source/user')
| -rw-r--r-- | docs/source/user/error-codes.rst | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/docs/source/user/error-codes.rst b/docs/source/user/error-codes.rst index 1bc3d7f..e74675f 100644 --- a/docs/source/user/error-codes.rst +++ b/docs/source/user/error-codes.rst @@ -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 | +------+---------------------------------------------------------------------+ |
