diff options
author | Wolfgang Müller | 2024-11-14 16:24:58 +0100 |
---|---|---|
committer | Wolfgang Müller | 2024-11-14 16:51:56 +0100 |
commit | 9e4f47b3dbc64d9328f3d7532ecfe0cd9432f21c (patch) | |
tree | 82782a479656519ce86ec617f702506306ec10c2 /pyproject.toml | |
parent | b4eb3a5d37ab7f8de09ee699d4695ec0c1a54e57 (diff) | |
download | hircine-9e4f47b3dbc64d9328f3d7532ecfe0cd9432f21c.tar.gz |
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.
Diffstat (limited to '')
-rw-r--r-- | pyproject.toml | 2 |
1 files changed, 2 insertions, 0 deletions
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"] |