Pycodestyle

Latest version: v2.12.1

Safety actively analyzes 682361 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 10

1.4

----------------

* Report E226 instead of E225 for optional whitespace around common
operators (``*``, ``**``, ``/``, ``+`` and ``-``). This new error
code is ignored in the default configuration because PEP 8 recommends
to "use your own judgement". (Issue 96)

* Lines with a `` nopep8`` at the end will not issue errors on line
length E501 or continuation line indentation E12*. (Issue 27)

* Fix AssertionError when the source file contains an invalid line
ending ``"\r\r\n"``. (Issue 119)

* Read the ``[pep8]`` section of ``tox.ini`` or ``setup.cfg`` if present.
(Issue 93 and 141)

* Add the Sphinx-based documentation, and publish it
on https://pycodestyle.readthedocs.io/. (Issue #105)

1.3.4

------------------

* Fix false positive E124 and E128 with comments. (Issue 100)

* Fix error on stdin when running with bpython. (Issue 101)

* Fix false positive E401. (Issue 104)

* Report E231 for nested dictionary in list. (Issue 142)

* Catch E271 at the beginning of the line. (Issue 133)

* Fix false positive E126 for multi-line comments. (Issue 138)

* Fix false positive E221 when operator is preceded by a comma. (Issue 135)

* Fix ``--diff`` failing on one-line hunk. (Issue 137)

* Fix the ``--exclude`` switch for directory paths. (Issue 111)

* Use ``-`` filename to read from standard input. (Issue 128)

1.3.3

------------------

* Fix regression with continuation line checker. (Issue 98)

1.3.2

------------------

* Revert to the previous behaviour for ``--show-pep8``:
do not imply ``--first``. (Issue 89)

* Add E902 for IO errors. (Issue 87)

* Fix false positive for E121, and missed E124. (Issue 92)

* Set a sensible default path for config file on Windows. (Issue 95)

* Allow ``verbose`` in the configuration file. (Issue 91)

* Show the enforced ``max-line-length`` in the error message. (Issue 86)

1.3.1

------------------

* Explain which configuration options are expected. Accept and recommend
the options names with hyphen instead of underscore. (Issue 82)

* Do not read the user configuration when used as a module
(except if ``config_file=True`` is passed to the ``StyleGuide`` constructor).

* Fix wrong or missing cases for the E12 series.

* Fix cases where E122 was missed. (Issue 81)

1.3

----------------

.. warning::
The internal API is backwards incompatible.

* Remove global configuration and refactor the library around
a ``StyleGuide`` class; add the ability to configure various
reporters. (Issue 35 and 66)

* Read user configuration from ``~/.config/pep8``
and local configuration from ``./.pep8``. (Issue 22)

* Fix E502 for backslash embedded in multi-line string. (Issue 68)

* Fix E225 for Python 3 iterable unpacking (PEP 3132). (Issue 72)

* Enable the new checkers from the E12 series in the default
configuration.

* Suggest less error-prone alternatives for E712 errors.

* Rewrite checkers to run faster (E22, E251, E27).

* Fixed a crash when parsed code is invalid (too many
closing brackets).

* Fix E127 and E128 for continuation line indentation. (Issue 74)

* New option ``--format`` to customize the error format. (Issue 23)

* New option ``--diff`` to check only modified code. The unified
diff is read from STDIN. Example: ``hg diff | pep8 --diff``
(Issue 39)

* Correctly report the count of failures and set the exit code to 1
when the ``--doctest`` or the ``--testsuite`` fails.

* Correctly detect the encoding in Python 3. (Issue 69)

* Drop support for Python 2.3, 2.4 and 3.0. (Issue 78)

Page 7 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.