Closed Bug 1504747 Opened 7 years ago Closed 4 years ago

[wpt-sync] Sync PR 13924 - Update pycodestyle to 2.4.0

Categories

(Testing :: web-platform-tests, enhancement, P4)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 13924 into mozilla-central (this bug is closed when the sync is complete). PR: https://github.com/web-platform-tests/wpt/pull/13924 Details from upstream follow. pyup-bot <github-bot@pyup.io> wrote: > Update pycodestyle to 2.4.0 > > > This PR updates [pycodestyle](https://pypi.org/project/pycodestyle) from **2.3.1** to **2.4.0**. > > > > <details> > <summary>Changelog</summary> > > > ### 2.4.0 > ``` > ------------------ > > New checks: > > * Add W504 warning for checking that a break doesn&#39;t happen after a binary > operator. This check is ignored by default. PR 502. > * Add W605 warning for invalid escape sequences in string literals. PR 676. > * Add W606 warning for &#39;async&#39; and &#39;await&#39; reserved keywords being introduced > in Python 3.7. PR 684. > * Add E252 error for missing whitespace around equal sign in type annotated > function arguments with defaults values. PR 717. > > Changes: > > * An internal bisect search has replaced a linear search in order to improve > efficiency. PR 648. > * pycodestyle now uses PyPI trove classifiers in order to document supported > python versions on PyPI. PR 654. > * &#39;setup.cfg&#39; &#39;[wheel]&#39; section has been renamed to &#39;[bdist_wheel]&#39;, as > the former is legacy. PR 653. > * pycodestyle now handles very long lines much more efficiently for python > 3.2+. Fixes 643. PR 644. > * You can now write &#39;pycodestyle.StyleGuide(verbose=True)&#39; instead of > &#39;pycodestyle.StyleGuide(verbose=True, paths=[&#39;-v&#39;])&#39; in order to achieve > verbosity. PR 663. > * The distribution of pycodestyle now includes the license text in order to > comply with open source licenses which require this. PR 694. > * &#39;maximum_line_length&#39; now ignores shebang (&#39;!&#39;) lines. PR 736. > * Add configuration option for the allowed number of blank lines. It is > implemented as a top level dictionary which can be easily overwritten. Fixes > 732. PR 733. > > Bugs: > > * Prevent a &#39;DeprecationWarning&#39;, and a &#39;SyntaxError&#39; in future python, caused > by an invalid escape sequence. PR 625. > * Correctly report E501 when the first line of a docstring is too long. > Resolves 622. PR 630. > * Support variable annotation when variable start by a keyword, such as class > variable type annotations in python 3.6. PR 640. > * pycodestyle internals have been changed in order to allow &#39;python3 -m > cProfile&#39; to report correct metrics. PR 647. > * Fix a spelling mistake in the description of E722. PR 697. > * &#39;pycodestyle --diff&#39; now does not break if your &#39;gitconfig&#39; enables > &#39;mnemonicprefix&#39;. PR 706. > ``` > > > </details> > > > > > <details> > <summary>Links</summary> > > - PyPI: https://pypi.org/project/pycodestyle > - Changelog: https://pyup.io/changelogs/pycodestyle/ > - Docs: https://pycodestyle.readthedocs.io/ > </details> > >
PR 13924 applied with additional changes from upstream: a54a387e5d474670fbe0431eb8a898df603ec0eb

According to the bug 1735242, pycodestyle has been updated to 2.8.0.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.