Enable SIM in flake8 and ruff

This commit is contained in:
Alexander Hess 2026-11-30 20:57:31 +01:00
commit 007998372f
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -104,6 +104,7 @@ dev = [
"flake8-pytest-style (>=2.2.0,<3.0.0)",
"flake8-quotes (>=3.4.0,<4.0.0)",
"flake8-sfs (>=1.0.1,<2.0.0)",
"flake8-simplify (>=0.31.1,<0.32.0)",
"flake8-todos (>=0.3.1,<0.4.0)",
"flake8-unused-arguments (>=0.0.14,<0.1.0)",
"mypy (>=2.4.1,<3.0.0)",
@ -223,6 +224,8 @@ select = [
"Q0",
# flake8-sfs => use f-strings as the only type of string formatting
"SFS",
# flake8-simplify => Simpler code
"SIM",
# flake8-todos => unify TODOs
"T00",
# flake8-unused-arguments => declared function arguments must be used
@ -256,6 +259,8 @@ extend-ignore = [
"PT023",
# Allow f-strings as the only type of string formatting.
"SFS301",
# `bool()` around a comparison can be deliberate (`ruff` omits this rule).
"SIM901",
# TODOs need neither an author nor an issue.
"T002", "T003",
]
@ -477,6 +482,8 @@ select = [
"Q",
# flake8-bandit => common security issues
"S",
# flake8-simplify => Simpler code
"SIM",
# flake8-debugger => no debugger usage
"T10",
# flake8-todos => unify TODOs