@@ -134,6 +134,8 @@ Quick help is available on the command line::
134134 --count print total number of errors and warnings to standard
135135 error and set exit code to 1 if total is not null
136136 --max-line-length=n set maximum allowed line length (default: 79)
137+ --hang-closing hang closing bracket instead of matching indentation of
138+ opening bracket's line
137139 --format=format set the error format [default|pylint|<custom>]
138140 --diff report only lines changed according to the unified diff
139141 received on STDIN
@@ -145,8 +147,8 @@ Quick help is available on the command line::
145147 The project options are read from the [pep8] section of the tox.ini
146148 file or the setup.cfg file located in any parent folder of the path(s)
147149 being processed. Allowed options are: exclude, filename, select,
148- ignore, max-line-length, count, format, quiet, show-pep8, show-source ,
149- statistics, verbose.
150+ ignore, max-line-length, hang-closing, count, format, quiet, show-pep8,
151+ show-source, statistics, verbose.
150152
151153 --config=path user config file location (default: ~/.config/pep8)
152154
@@ -163,13 +165,14 @@ Example::
163165 ignore = E226,E302,E41
164166 max-line-length = 160
165167
166- At the project level, a ``.pep8 `` file, a `` tox.ini `` file or a ``setup.cfg ``
167- file is read if present. Only the first file is considered . If this file
168- does not have a ``[pep8] `` section, no project specific configuration is
168+ At the project level, a ``tox.ini `` file or a ``setup.cfg `` file is read if
169+ present (`` .pep8 `` file is also supported, but it is deprecated) . If none of
170+ these files have a ``[pep8] `` section, no project specific configuration is
169171loaded.
170172
171173If the ``ignore `` option is not in the configuration and not in the arguments,
172- only the error codes ``E226 `` and ``E241/E242 `` are ignored (see below).
174+ only the error codes ``E123/E133 ``, ``E226 `` and ``E241/E242 `` are ignored
175+ (see below).
173176
174177
175178Error codes
@@ -195,7 +198,7 @@ This is the current list of error and warning codes:
195198+----------+----------------------------------------------------------------------+
196199| E122 (^) | continuation line missing indentation or outdented |
197200+----------+----------------------------------------------------------------------+
198- | E123 (^ ) | closing bracket does not match indentation of opening bracket's line |
201+ | E123 (* ) | closing bracket does not match indentation of opening bracket's line |
199202+----------+----------------------------------------------------------------------+
200203| E124 (^) | closing bracket does not match visual indentation |
201204+----------+----------------------------------------------------------------------+
@@ -209,6 +212,8 @@ This is the current list of error and warning codes:
209212+----------+----------------------------------------------------------------------+
210213| E129 (^) | visually indented line with same indent as next logical line |
211214+----------+----------------------------------------------------------------------+
215+ | E133 (*) | closing bracket is missing indentation |
216+ +----------+----------------------------------------------------------------------+
212217+----------+----------------------------------------------------------------------+
213218| **E2 ** | *Whitespace * |
214219+----------+----------------------------------------------------------------------+
@@ -299,6 +304,10 @@ This is the current list of error and warning codes:
299304+----------+----------------------------------------------------------------------+
300305| E712 (^) | comparison to True should be 'if cond is True:' or 'if cond:' |
301306+----------+----------------------------------------------------------------------+
307+ | E713 | evaluating membership should be 'elem not in collection' |
308+ +----------+----------------------------------------------------------------------+
309+ | E714 | testing unequal identities should be 'x is not y' |
310+ +----------+----------------------------------------------------------------------+
302311| E721 | do not compare types, use 'isinstance()' |
303312+----------+----------------------------------------------------------------------+
304313+----------+----------------------------------------------------------------------+
@@ -339,9 +348,12 @@ This is the current list of error and warning codes:
339348| W604 | backticks are deprecated, use 'repr()' |
340349+----------+----------------------------------------------------------------------+
341350
342- **(*) ** In the default configuration, the checks **E226 **, **E241 **
343- and **E242 ** are ignored because they are not rules unanimously accepted,
344- and `PEP 8 `_ does not enforce them.
351+
352+ **(*) ** In the default configuration, the checks **E123 **, **E133 **, **E226 **,
353+ **E241 ** and **E242 ** are ignored because they are not rules unanimously
354+ accepted, and `PEP 8 `_ does not enforce them. The check **E133 ** is mutually
355+ exclusive with check **E123 **. Use switch ``--hang-closing `` to report **E133 **
356+ instead of **E123 **.
345357
346358**(^) ** These checks can be disabled at the line level using the ``# noqa ``
347359special comment. This possibility should be reserved for special cases.
0 commit comments