aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-09-11 21:20:18 +0200
committerDaniel Schadt <kingdread@gmx.de>2023-09-11 21:20:18 +0200
commit6b320b11ac2f86e9f63f6f9998db9dbbac56849d (patch)
treed7a27ce4e3a932ed2d0dc21d011ed85c2fc322fa
parent9f089a48543408197806fa79f9f4e0e0532f0681 (diff)
downloadfietsboek-6b320b11ac2f86e9f63f6f9998db9dbbac56849d.tar.gz
fietsboek-6b320b11ac2f86e9f63f6f9998db9dbbac56849d.tar.bz2
fietsboek-6b320b11ac2f86e9f63f6f9998db9dbbac56849d.zip
allow lambda assignments
I think there are legitimate use cases and flat out not allowing any lambda to be assigned to a variable is very restrictive.
-rw-r--r--pylint.toml12
-rw-r--r--tox.ini2
2 files changed, 12 insertions, 2 deletions
diff --git a/pylint.toml b/pylint.toml
index 3f011cb..b6dbaef 100644
--- a/pylint.toml
+++ b/pylint.toml
@@ -345,7 +345,17 @@ confidence = ["HIGH", "CONTROL_FLOW", "INFERENCE", "INFERENCE_FAILURE", "UNDEFIN
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
-disable = ["raw-checker-failed", "bad-inline-option", "locally-disabled", "file-ignored", "suppressed-message", "useless-suppression", "deprecated-pragma", "use-symbolic-message-instead"]
+disable = [
+ "raw-checker-failed",
+ "bad-inline-option",
+ "locally-disabled",
+ "file-ignored",
+ "suppressed-message",
+ "useless-suppression",
+ "deprecated-pragma",
+ "use-symbolic-message-instead",
+ "unnecessary-lambda-assignment",
+]
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
diff --git a/tox.ini b/tox.ini
index d922d4b..4c0e38e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,7 @@
[flake8]
max-line-length = 100
exclude = fietsboek/alembic
-extend-ignore = E203
+extend-ignore = E203 E731
per-file-ignores =
fietsboek/models/__init__.py:F401