Page MenuHomeSolus

Update pyflakes to 2.2.0
ClosedPublic

Authored by xulongwu4 on Sep 10 2020, 2:15 AM.
Tags
None
Referenced Files
F11069356: D9621.id26208.diff
Fri, Aug 11, 10:51 PM
F11069355: D9621.id23184.diff
Fri, Aug 11, 10:51 PM
F11069354: D9621.id25113.diff
Fri, Aug 11, 10:51 PM
F11069353: D9621.id.diff
Fri, Aug 11, 10:51 PM
F11051344: D9621.diff
Thu, Aug 10, 7:57 PM
F10848940: D9621.id26208.diff
Jun 11 2023, 5:17 PM
F10846864: D9621.id23184.diff
Jun 11 2023, 8:03 AM
F10844529: D9621.id25113.diff
Jun 10 2023, 9:17 PM
Subscribers

Details

Summary

Update pyflakes to 2.2.0

Changelog:

  • Include column information in error messages
  • Fix @overload detection with other decorators and in non-global scopes
  • Fix return-type annotation being a class member
  • Add check for f-strings without placeholders
  • Improve python shebang detection
  • Add support for assignment expressions (PEP 572)
  • Make pyflakes more resistant to future syntax additions
  • Fix false positives in partially quoted type annotations
  • Switch from optparse to argparse
  • Fix false positives in partially quoted type annotations in unusual contexts
Test Plan
  • Dependency of D9620.
  • Used it to check quality of python files successfully.

Diff Detail

Repository
R2509 pyflakes
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Check also python-pycurl and mutagen.

@algent mutagen also uses pyflakes for its code quality check, but it has no functional dependency on pyflakes. mutagen builds successfully and its python3 part of unit tests pass. python-pycurl also only uses pyflakes for unit test. I am able to build python-pycurl successfully. Its unit tests failed. However, this failure happens regardless of whether I use local repository or not, so I don't think it's related to the upgrade of pyflakes.

DataDrake added a subscriber: DataDrake.

We should take a closer look at mutagen and python-pycurl, but I think there's nothing wrong here with this patch. LGTM. Thanks!

This revision is now accepted and ready to land.Dec 16 2020, 9:11 AM

Submitted the missing patches for python-pycurl and mutagen to complete this stack.

xulongwu4 retitled this revision from Update pyflakes to 2.2.0 and drop python2 support to Update pyflakes to 2.2.0.Jan 22 2021, 3:03 PM
xulongwu4 edited the summary of this revision. (Show Details)

Spyder version 5.x series needs this stack.

This revision was automatically updated to reflect the committed changes.