Skip to content

Commit

Permalink
flake8: disable E731: do not assign a lambda expression, use a def
Browse files Browse the repository at this point in the history
It has too many false positives.  It was complaining about things like

    if this:
         fn = some_func
    else:
         fn = lambda x: ...

Where obviously, "fn" can't be a def, and it would be silly to introduce
some other name to use as the def, just to assign it to fn.
  • Loading branch information
LukeShu committed Sep 21, 2017
1 parent 4dbbb48 commit 68d4c1e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ ignore =
E305,
# E401: multiple imports on one line
E401,
# too many leading '#' for block comment
# E266: too many leading '#' for block comment
E266,
# module level import not at top of file
E402
# E402: module level import not at top of file
E402,
# E731: do not assign a lambda expression, use a def (too many false positives)
E731
max-line-length = 120

0 comments on commit 68d4c1e

Please sign in to comment.