[Buildbot] #3403: replace pep8+pyflakes with flake8

Buildbot trac trac at buildbot.net
Thu Jan 7 12:10:42 UTC 2016


#3403: replace pep8+pyflakes with flake8
----------------------+-----------------------
Reporter:  rutsky     |      Owner:
    Type:  undecided  |     Status:  new
Priority:  major      |  Milestone:  undecided
 Version:  master     |   Keywords:
----------------------+-----------------------
 Looks like flake8 does pep8 checks and pyflakes checks, but in addition
 allows more tuning of ignored checks.

 For example, instead of doing hush_pyflakes:

 {{{
 from buildbot.process.buildrequest import BuildRequest
 _hush_pyflakes = [BuildRequest]
 }}}

 with flake8 is possible to ignore warnings from single line using `# noqa`
 directive:

 {{{
 from buildbot.process.buildrequest import BuildRequest  # noqa
 }}}

 Even author of pyflakes suggests in README:

 {{{
 If you require more options and more flexibility, you could give a look to
 Flake8 too.
 }}}

 Right now I stumbled with the issue, that it's not possible to use star
 import with pyflakes at all (yes, I need exactly star import), and AFAIK
 there is no way to disable this warning in specific file.

--
Ticket URL: <http://trac.buildbot.net/ticket/3403>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list