Page MenuHomePhabricator

[linter] Make flake8 version >= 5 happy
ClosedPublic

Authored by Fabien on Sep 2 2022, 14:05.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCc1a376159d18: [linter] Make flake8 version >= 5 happy
Summary

The latest flake8 version expects the keywords to have no parenthesis (e.g. assert foo vs assert(foo) or a space (e.g. assert (foo)) if needed.

Test Plan

With flake8 version 5.0.0:

arc lint --everything

ninja all check-all

Diff Detail

Event Timeline

Fabien requested review of this revision.Sep 2 2022, 14:05
PiRK added a subscriber: PiRK.

LGTM, with maybe one nit

test/functional/p2p_getaddr_caching.py
84

This is the one case where assert (...) would be slightly better, as the parentheses would allow splitting the following statement over multiple lines and not cause autopep8 to introduce its awkward auto-formatting.

This revision is now accepted and ready to land.Sep 2 2022, 16:37
Fabien marked an inline comment as done.Sep 3 2022, 08:36
This revision was automatically updated to reflect the committed changes.