summaryrefslogtreecommitdiffstatshomepage
path: root/pyproject.toml
diff options
context:
space:
mode:
authorWolfgang Müller2024-11-14 16:24:58 +0100
committerWolfgang Müller2024-11-14 16:51:56 +0100
commit9e4f47b3dbc64d9328f3d7532ecfe0cd9432f21c (patch)
tree82782a479656519ce86ec617f702506306ec10c2 /pyproject.toml
parentb4eb3a5d37ab7f8de09ee699d4695ec0c1a54e57 (diff)
downloadhircine-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 'pyproject.toml')
-rw-r--r--pyproject.toml2
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"]