diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-09-21 11:54:45 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-09-21 13:41:09 -0400 |
commit | 68d4c1e559fef510e257b36d69fd907b16830efd (patch) | |
tree | 4d51bca4f619900f600f745d5fe788314e08ab55 /setup.cfg | |
parent | 4dbbb4884c205a1b82ac0deb9c751161a44534fd (diff) | |
download | meson-68d4c1e559fef510e257b36d69fd907b16830efd.zip meson-68d4c1e559fef510e257b36d69fd907b16830efd.tar.gz meson-68d4c1e559fef510e257b36d69fd907b16830efd.tar.bz2 |
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.
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |