osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-dev/+/43121?usp=email )
Change subject: ruff: ignore new failing default rules ......................................................................
ruff: ignore new failing default rules
With the new ruff 0.16 version, a lot of new default rules have been added. Ignore the ones that are failing for now to make the linter pass again.
Related: https://astral.sh/blog/ruff-v0.16.0#better-default-rule-set Change-Id: I7d22481e9238e8155beb923a120ac8baea21df9d --- M .ruff.toml 1 file changed, 10 insertions(+), 2 deletions(-)
Approvals: Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve osmith: Looks good to me, approved
diff --git a/.ruff.toml b/.ruff.toml index c673c3a..d9ae72b 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -12,8 +12,16 @@ ]
[lint] -# E741: Ambiguous variable name: `l` -ignore = ["E741"] +ignore = [ + "B026", # https://docs.astral.sh/ruff/rules/star-arg-unpacking-after-keyword-arg/ + "E741", # https://docs.astral.sh/ruff/rules/ambiguous-variable-name/ + "EXE001", # https://docs.astral.sh/ruff/rules/shebang-not-executable/ + "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports/ + "PLR1730", # https://docs.astral.sh/ruff/rules/if-stmt-min-max/ + "SIM103", # https://docs.astral.sh/ruff/rules/needless-bool/ + "SIM115", # https://docs.astral.sh/ruff/rules/open-file-with-context-handler/ + "UP031", # https://docs.astral.sh/ruff/rules/printf-string-formatting/ +]
[format] exclude = [