From 6b320b11ac2f86e9f63f6f9998db9dbbac56849d Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 11 Sep 2023 21:20:18 +0200 Subject: 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. --- pylint.toml | 12 +++++++++++- tox.ini | 2 +- 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 -- cgit v1.2.3