osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43119?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: If95dc72c1826b4b96961453b2c2ed1d2c81ba149 --- M .ruff.toml 1 file changed, 23 insertions(+), 0 deletions(-)
Approvals: osmith: Looks good to me, approved Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve
diff --git a/.ruff.toml b/.ruff.toml index ad8c0b5..63013d2 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -2,3 +2,26 @@ exclude = [ "compare-results.py", ] + +[lint] +ignore = [ + "B006", # https://docs.astral.sh/ruff/rules/mutable-argument-default/ + "B026", # https://docs.astral.sh/ruff/rules/star-arg-unpacking-after-keyword-arg/ + "BLE001", # https://docs.astral.sh/ruff/rules/blind-except/ + "DTZ001", # https://docs.astral.sh/ruff/rules/call-datetime-without-tzinfo/ + "DTZ004", # https://docs.astral.sh/ruff/rules/call-datetime-utcfromtimestamp/ + "DTZ005", # https://docs.astral.sh/ruff/rules/call-datetime-now-without-tzinfo/ + "DTZ007", # https://docs.astral.sh/ruff/rules/call-datetime-strptime-without-zone/ + "FURB105", # https://docs.astral.sh/ruff/rules/print-empty-string/ + "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports/ + "LOG015", # https://docs.astral.sh/ruff/rules/root-logger-call/ + "PIE808", # https://docs.astral.sh/ruff/rules/unnecessary-range-start/ + "PLC0206", # https://docs.astral.sh/ruff/rules/dict-index-missing-items/ + "PLW0602", # https://docs.astral.sh/ruff/rules/global-variable-not-assigned/ + "PLW1510", # https://docs.astral.sh/ruff/rules/subprocess-run-without-check/ + "RUF012", # https://docs.astral.sh/ruff/rules/mutable-class-default/ + "SIM102", # https://docs.astral.sh/ruff/rules/collapsible-if/ + "SIM103", # https://docs.astral.sh/ruff/rules/needless-bool/ + "SIM118", # https://docs.astral.sh/ruff/rules/in-dict-keys/ + "UP032", # https://docs.astral.sh/ruff/rules/f-string/ +]