From 0fe0794a09618ad9a54e8156895149e03f50e673 Mon Sep 17 00:00:00 2001 From: Sander Lienaerts Date: Fri, 11 Oct 2024 10:01:39 +0200 Subject: [PATCH] [FIX] ruff: ignore printf-string-formatting of rule up031 When not using Ruff, pre-commit prevents pyupgrade from replacing printf with str.format() (https://github.com/OCA/oca-addons-repo-template/pull/49). Using Ruff this rule is not being ignored. This commit modifies the Ruff configuration adding an ignore rule for UP031. --- src/{% if use_ruff %}.ruff.toml{% endif%}.jinja | 1 + 1 file changed, 1 insertion(+) diff --git a/src/{% if use_ruff %}.ruff.toml{% endif%}.jinja b/src/{% if use_ruff %}.ruff.toml{% endif%}.jinja index 8a084d1..e1d023e 100644 --- a/src/{% if use_ruff %}.ruff.toml{% endif%}.jinja +++ b/src/{% if use_ruff %}.ruff.toml{% endif%}.jinja @@ -18,6 +18,7 @@ extend-select = [ "{{ rule }}", {%- endfor %} ] +ignore = ["UP031"] exclude = ["setup/*"] [format]