diff options
author | David Pursehouse <dpursehouse@collab.net> | 2020-02-15 11:43:24 +0900 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2020-02-15 03:41:17 +0000 |
commit | 076512aafaa96563cfb1ca1d43bbd515091d0e5e (patch) | |
tree | 1c4a3d223eb03248949eb629a5acbcda3f50ab5a | |
parent | d8fda90eedcee2cc39ba13b9f8f7b7bab37310c3 (diff) | |
download | git-repo-076512aafaa96563cfb1ca1d43bbd515091d0e5e.tar.gz |
flake8: Suppress "E731 do not assign a lambda expression, use a def"
The Google Python Style Guide [1] says that lambdas are OK for
one-liners. All the current usages are one-liners, so let's just
suppress it.
[1] http://google.github.io/styleguide/pyguide.html#210-lambda-functions
Change-Id: I404c7a8e5e71870caf0f4604862cbf01db495863
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/255038
Tested-by: David Pursehouse <dpursehouse@collab.net>
Reviewed-by: Mike Frysinger <vapier@google.com>
-rw-r--r-- | .flake8 | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -7,6 +7,8 @@ ignore= | |||
7 | E114, | 7 | E114, |
8 | # E402: Module level import not at top of file | 8 | # E402: Module level import not at top of file |
9 | E402, | 9 | E402, |
10 | # E731: do not assign a lambda expression, use a def | ||
11 | E731, | ||
10 | # W503: Line break before binary operator | 12 | # W503: Line break before binary operator |
11 | W503, | 13 | W503, |
12 | # W504: Line break after binary operator | 14 | # W504: Line break after binary operator |