osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/43137?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: I798653c9facbfc2dbbbfd543c01131381a6c02ca
---
M .ruff.toml
1 file changed, 24 insertions(+), 0 deletions(-)

Approvals:
  fixeria: Looks good to me, approved
  Jenkins Builder: Verified




diff --git a/.ruff.toml b/.ruff.toml
index c0b9b9d..1cfd21b 100644
--- a/.ruff.toml
+++ b/.ruff.toml
@@ -25,3 +25,27 @@
        "scripts/verify_log_statements.py",
        "scripts/verify_value_string_arrays_are_terminated.py",
 ]
+
+[lint]
+ignore = [
+       "B006",    # https://docs.astral.sh/ruff/rules/mutable-argument-default/
+       "B010",    # https://docs.astral.sh/ruff/rules/set-attr-with-constant/
+       "B026",    # 
https://docs.astral.sh/ruff/rules/star-arg-unpacking-after-keyword-arg/
+       "BLE001",  # https://docs.astral.sh/ruff/rules/blind-except/
+       "EXE001",  # https://docs.astral.sh/ruff/rules/shebang-not-executable/
+       "FURB122", # https://docs.astral.sh/ruff/rules/for-loop-writes/
+       "FURB129", # https://docs.astral.sh/ruff/rules/readlines-in-for/
+       "FURB188", # 
https://docs.astral.sh/ruff/rules/slice-to-remove-prefix-or-suffix/
+       "I001",    # https://docs.astral.sh/ruff/rules/unsorted-imports/
+       "PIE808",  # https://docs.astral.sh/ruff/rules/unnecessary-range-start/
+       "PIE810",  # 
https://docs.astral.sh/ruff/rules/multiple-starts-ends-with/
+       "PLW0602", # 
https://docs.astral.sh/ruff/rules/global-variable-not-assigned/
+       "PLW1510", # 
https://docs.astral.sh/ruff/rules/subprocess-run-without-check/
+       "RUF100",  # https://docs.astral.sh/ruff/rules/unused-noqa/
+       "SIM103",  # https://docs.astral.sh/ruff/rules/needless-bool/
+       "SIM115",  # 
https://docs.astral.sh/ruff/rules/open-file-with-context-handler/
+       "SIM201",  # https://docs.astral.sh/ruff/rules/negate-equal-op/
+       "SIM401",  # 
https://docs.astral.sh/ruff/rules/if-else-block-instead-of-dict-get/
+       "UP031",   # https://docs.astral.sh/ruff/rules/printf-string-formatting/
+       "W605",    # https://docs.astral.sh/ruff/rules/invalid-escape-sequence/
+]

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/43137?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I798653c9facbfc2dbbbfd543c01131381a6c02ca
Gerrit-Change-Number: 43137
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to