From 9e4f47b3dbc64d9328f3d7532ecfe0cd9432f21c Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Thu, 14 Nov 2024 16:24:58 +0100 Subject: backend/lint: Ignore SIM102 and SIM108 SIM102 is "collapsible-if", which we always follow except a few specific cases where we believe nested ifs are easier to read. Since we'd have to manually ignore all those instances, disable the whole rule instead. SIM108 is "if-else-block-instead-of-if-exp" which suggests the use of the ternary operator instead of an if/else block. We generally dislike how the ternary operator is less readable than a simple if/else block, so we disable this rule. --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 20e1b75..fa96a16 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,8 @@ select = [ "FURB" # refurb ] +ignore = ["SIM102", "SIM108"] + [tool.pytest.ini_options] pythonpath = ["src"] -- cgit v1.2.3-2-gb3c3