summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Cock <p.j.a.cock@googlemail.com>2018-01-23 10:37:54 +0000
committerGitHub <noreply@github.com>2018-01-23 10:37:54 +0000
commit80684c4c48716837b06a2b0d6cd421851b1a0ae6 (patch)
treef7442ee7eac109eeff0085c59b93df8f6270fe7f
parent534310014a1dad2a5aeca486fa2dccda93eb930b (diff)
downloadpep8-80684c4c48716837b06a2b0d6cd421851b1a0ae6.tar.gz
Describe code W504 line break after binary operator
Cross reference changes in pull request #502 which added this.
-rw-r--r--docs/intro.rst11
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/intro.rst b/docs/intro.rst
index 4ddf91f..854dc54 100644
--- a/docs/intro.rst
+++ b/docs/intro.rst
@@ -402,7 +402,9 @@ This is the current list of error and warning codes:
+------------+----------------------------------------------------------------------+
| **W5** | *Line break warning* |
+------------+----------------------------------------------------------------------+
-| W503 (*) | line break occurred before a binary operator |
+| W503 (*)   | line break before binary operator                         |
++------------+----------------------------------------------------------------------+
+| W504 (*)   | line break after binary operator                         |
+------------+----------------------------------------------------------------------+
+------------+----------------------------------------------------------------------+
| **W6** | *Deprecation warning* |
@@ -420,9 +422,10 @@ This is the current list of error and warning codes:
**(*)** In the default configuration, the checks **E121**, **E123**, **E126**,
-**E133**, **E226**, **E241**, **E242**, **E704** and **W503** are ignored because
-they are not rules unanimously accepted, and `PEP 8`_ does not enforce them. The
-check **E133** is mutually exclusive with check **E123**. Use switch
+**E133**, **E226**, **E241**, **E242**, **E704**, **W503** and **W504** are ignored
+because they are not rules unanimously accepted, and `PEP 8`_ does not enforce them.
+The check **W503** is mutually exclusive with check **W504**.
+The check **E133** is mutually exclusive with check **E123**. Use switch
``--hang-closing`` to report **E133** instead of **E123**.
**(^)** These checks can be disabled at the line level using the ``# noqa``