mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
Merge branch 'update-pyflakes-error-codes' into 'master'
Update documentation with new pyflakes error codes. See merge request pycqa/flake8!300
This commit is contained in:
commit
218bacb108
1 changed files with 9 additions and 2 deletions
|
|
@ -39,6 +39,10 @@ generates its own :term:`error code`\ s for ``pyflakes``:
|
|||
+------+---------------------------------------------------------------------+
|
||||
| F631 | assertion test is a tuple, which are always ``True`` |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F632 | use ``==/!=`` to compare ``str``, ``bytes``, and ``int`` literals |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F633 | assertion test is a tuple, which are always ``True`` |
|
||||
+------+---------------------------------------------------------------------+
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F701 | a ``break`` statement outside of a ``while`` or ``for`` loop |
|
||||
+------+---------------------------------------------------------------------+
|
||||
|
|
@ -54,8 +58,11 @@ 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 |
|
||||
| F721 | syntax error in doctest |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F722 | syntax error in forward annotation |
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F723 | syntax error in type comment |
|
||||
+------+---------------------------------------------------------------------+
|
||||
+------+---------------------------------------------------------------------+
|
||||
| F811 | redefinition of unused ``name`` from line ``N`` |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue