summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-09-21 11:54:45 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-09-21 13:41:09 -0400
commit68d4c1e559fef510e257b36d69fd907b16830efd (patch)
tree4d51bca4f619900f600f745d5fe788314e08ab55
parent4dbbb4884c205a1b82ac0deb9c751161a44534fd (diff)
downloadmeson-68d4c1e559fef510e257b36d69fd907b16830efd.tar.gz
flake8: disable E731: do not assign a lambda expression, use a def
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.
-rw-r--r--setup.cfg8
1 files changed, 5 insertions, 3 deletions
diff --git a/setup.cfg b/setup.cfg
index b3adc5901..edcf3c564 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -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